-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pts/node-express-loadtest-1.0.1: Override the timezone (TZ) to avoid …
…parsing issue - #118
- Loading branch information
1 parent
d2125f1
commit ea1aba9
Showing
4 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0"?> | ||
<!--Phoronix Test Suite v9.2.1--> | ||
<PhoronixTestSuite> | ||
<Downloads> | ||
<Package> | ||
<URL>http://phoronix-test-suite.com/benchmark-files/NodeRestPerfTest3-20181001.zip</URL> | ||
<MD5>cd3ec7e7821b53ed466b5527e0b3c0a4</MD5> | ||
<SHA256>21cc2b399839360625b4973f981317b92f028d40e9f6fa2254ea259bdace9fc5</SHA256> | ||
<FileName>NodeRestPerfTest3-20181001.zip</FileName> | ||
<FileSize>8547</FileSize> | ||
</Package> | ||
</Downloads> | ||
</PhoronixTestSuite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
|
||
unzip -o NodeRestPerfTest3-20181001.zip | ||
export TZ=EST | ||
|
||
if which node>/dev/null 2>&1 ; | ||
then | ||
echo 0 > ~/install-exit-status | ||
else | ||
echo "ERROR: Node is not found on the system! This test profile needs a working Node.js installation in the PATH." | ||
echo 2 > ~/install-exit-status | ||
exit | ||
fi | ||
|
||
|
||
cd NodeRestPerfTest3-master/ | ||
npm install express | ||
npm install loadtest | ||
|
||
cd ~ | ||
echo "#!/bin/sh | ||
cd NodeRestPerfTest3-master/ | ||
export TZ=EST | ||
node expressserver.js & | ||
./node_modules/.bin/loadtest -n 100000 -c 250 http://localhost:8000 > \$LOG_FILE 2>&1 | ||
echo \$? > ~/test-exit-status | ||
killall -9 node #cleanup this check | ||
echo \"Nodejs \" > ~/pts-footnote | ||
nodejs --version >> ~/pts-footnote 2>/dev/null" > node-express-loadtest | ||
chmod +x node-express-loadtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0"?> | ||
<!--Phoronix Test Suite v9.2.1--> | ||
<PhoronixTestSuite> | ||
<ResultsParser> | ||
<OutputTemplate>[Mon Oct 01 2018 14:18:24 GMT-0400 (EDT)] INFO Requests per second: #_RESULT_#</OutputTemplate> | ||
<LineHint>Requests per second</LineHint> | ||
</ResultsParser> | ||
</PhoronixTestSuite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0"?> | ||
<!--Phoronix Test Suite v9.2.1--> | ||
<PhoronixTestSuite> | ||
<TestInformation> | ||
<Title>Node.js Express HTTP Load Test</Title> | ||
<Description>A Node.js Express server with a Node-based loadtest client for facilitating HTTP benchmarking.</Description> | ||
<ResultScale>Requests Per Second</ResultScale> | ||
<Proportion>HIB</Proportion> | ||
<TimesToRun>3</TimesToRun> | ||
</TestInformation> | ||
<TestProfile> | ||
<Version>1.0.1</Version> | ||
<SupportedPlatforms>Linux, BSD, Solaris, MacOSX</SupportedPlatforms> | ||
<SoftwareType>Utility</SoftwareType> | ||
<TestType>Processor</TestType> | ||
<License>Free</License> | ||
<Status>Verified</Status> | ||
<ExternalDependencies>node-npm</ExternalDependencies> | ||
<EnvironmentSize>2</EnvironmentSize> | ||
<ProjectURL>https://github.com/PlainSight/NodeRestPerfTest3</ProjectURL> | ||
<Maintainer>Michael Larabel</Maintainer> | ||
</TestProfile> | ||
</PhoronixTestSuite> |