Skip to content

Commit

Permalink
pts/node-express-loadtest-1.0.1: Override the timezone (TZ) to avoid …
Browse files Browse the repository at this point in the history
…parsing issue - #118
  • Loading branch information
Phoronix Test Suite authored and michaellarabel committed Jan 4, 2020
1 parent d2125f1 commit ea1aba9
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pts/node-express-loadtest-1.0.1/downloads.xml
@@ -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>
33 changes: 33 additions & 0 deletions pts/node-express-loadtest-1.0.1/install.sh
@@ -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
8 changes: 8 additions & 0 deletions pts/node-express-loadtest-1.0.1/results-definition.xml
@@ -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>
23 changes: 23 additions & 0 deletions pts/node-express-loadtest-1.0.1/test-definition.xml
@@ -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>

0 comments on commit ea1aba9

Please sign in to comment.