Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
5a23cfff
Commit
5a23cfff
authored
Sep 24, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #265 from heroku/performance-l
Performance L
parents
b4921004
3425f11f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
nodejs.sh
profile/nodejs.sh
+4
-4
run
test/run
+10
-10
No files found.
profile/nodejs.sh
View file @
5a23cfff
...
@@ -20,10 +20,10 @@ detect_memory() {
...
@@ -20,10 +20,10 @@ detect_memory() {
local
limit
=
$(
ulimit
-u
)
local
limit
=
$(
ulimit
-u
)
case
$limit
in
case
$limit
in
256
)
echo
"512"
;;
# Standard-1X
256
)
echo
"512"
;;
# Standard-1X
512
)
echo
"1024"
;;
# Standard-2X
512
)
echo
"1024"
;;
# Standard-2X
16384
)
echo
"2560"
;;
# Performance-M
16384
)
echo
"2560"
;;
# Performance-M
32768
)
echo
"
6144
"
;;
# Performance-L
32768
)
echo
"
14336
"
;;
# Performance-L
*
)
echo
"
$default
"
;;
*
)
echo
"
$default
"
;;
esac
esac
}
}
...
...
test/run
View file @
5a23cfff
...
@@ -39,11 +39,11 @@ testConcurrencyPerformanceM() {
...
@@ -39,11 +39,11 @@ testConcurrencyPerformanceM() {
assertCapturedSuccess
assertCapturedSuccess
}
}
testConcurrencyP
X
()
{
testConcurrencyP
erformanceL
()
{
LOG_CONCURRENCY
=
true
MEMORY_AVAILABLE
=
6144
capture
$(
pwd
)
/profile/nodejs.sh
LOG_CONCURRENCY
=
true
MEMORY_AVAILABLE
=
14336
capture
$(
pwd
)
/profile/nodejs.sh
assertCaptured
"Detected 6144
MB available memory, 512 MB limit per process (WEB_MEMORY)"
assertCaptured
"Detected 14336
MB available memory, 512 MB limit per process (WEB_MEMORY)"
assertCaptured
"Recommending WEB_CONCURRENCY=12
"
assertCaptured
"Recommending WEB_CONCURRENCY=28
"
assertCapturedSuccess
assertCapturedSuccess
}
}
testConcurrencyCustomLimit
()
{
testConcurrencyCustomLimit
()
{
...
@@ -171,7 +171,7 @@ testNoVersion() {
...
@@ -171,7 +171,7 @@ testNoVersion() {
compile
"no-version"
compile
"no-version"
assertCaptured
"engines.node (package.json): unspecified"
assertCaptured
"engines.node (package.json): unspecified"
assertCaptured
"Resolving node version (latest stable) via semver.io"
assertCaptured
"Resolving node version (latest stable) via semver.io"
assertCaptured
"Downloading and installing node
0.12
."
assertCaptured
"Downloading and installing node
4
."
assertCapturedSuccess
assertCapturedSuccess
}
}
...
@@ -199,7 +199,7 @@ testUnstableVersion() {
...
@@ -199,7 +199,7 @@ testUnstableVersion() {
testOldNpm
()
{
testOldNpm
()
{
compile
"old-npm"
compile
"old-npm"
assertCaptured
"This version of npm (1.2.8000) has several known issues - consider upgrading to the latest release (
2
."
assertCaptured
"This version of npm (1.2.8000) has several known issues - consider upgrading to the latest release (
3
."
assertNotCaptured
"integer expression expected"
assertNotCaptured
"integer expression expected"
assertCapturedError
assertCapturedError
}
}
...
@@ -275,7 +275,7 @@ testDangerousRangeStar() {
...
@@ -275,7 +275,7 @@ testDangerousRangeStar() {
compile
"dangerous-range-star"
compile
"dangerous-range-star"
assertCaptured
"Dangerous semver range"
assertCaptured
"Dangerous semver range"
assertCaptured
"Resolving node version * via semver.io"
assertCaptured
"Resolving node version * via semver.io"
assertCaptured
"Downloading and installing node
0.12
."
assertCaptured
"Downloading and installing node
4
."
assertCapturedError
assertCapturedError
}
}
...
@@ -283,14 +283,14 @@ testDangerousRangeGreaterThan() {
...
@@ -283,14 +283,14 @@ testDangerousRangeGreaterThan() {
compile
"dangerous-range-greater-than"
compile
"dangerous-range-greater-than"
assertCaptured
"Dangerous semver range"
assertCaptured
"Dangerous semver range"
assertCaptured
"Resolving node version >0.4 via semver.io"
assertCaptured
"Resolving node version >0.4 via semver.io"
assertCaptured
"Downloading and installing node
0.12
"
assertCaptured
"Downloading and installing node
4.
"
assertCapturedError
assertCapturedError
}
}
testRangeWithSpace
()
{
testRangeWithSpace
()
{
compile
"range-with-space"
compile
"range-with-space"
assertCaptured
"Resolving node version >= 0.8.x via semver.io"
assertCaptured
"Resolving node version >= 0.8.x via semver.io"
assertCaptured
"Downloading and installing node
0.12
"
assertCaptured
"Downloading and installing node
4.
"
assertCapturedSuccess
assertCapturedSuccess
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment