Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
s/trouble/double
  • Loading branch information
joyeecheung committed Apr 8, 2017
commit 21c48b1e51ad294e76cabf7c5ed97cbd1770eb60
8 changes: 4 additions & 4 deletions benchmark/_http-benchmarkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ class WrkBenchmarker {
* Simple, single-threaded benchmarker for testing if the benchmark
* works
*/
class TestTroubleBenchmarker {
class TestDoubleBenchmarker {
constructor() {
this.name = 'test-trouble';
this.executable = path.resolve(__dirname, '_test-trouble-benchmarker.js');
this.name = 'test-double';
this.executable = path.resolve(__dirname, '_test-double-benchmarker.js');
this.present = fs.existsSync(this.executable);
}

Expand Down Expand Up @@ -112,7 +112,7 @@ class TestTroubleBenchmarker {
const http_benchmarkers = [
new WrkBenchmarker(),
new AutocannonBenchmarker(),
new TestTroubleBenchmarker()
new TestDoubleBenchmarker()
];

const benchmarkers = {};
Expand Down
2 changes: 1 addition & 1 deletion test/sequential/test-benchmark-http.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const child = fork(runjs, ['--set', 'dur=0.1',
'--set', 'len=1',
'--set', 'c=1',
'--set', 'chunks=0',
'--set', 'benchmarker=test-trouble',
'--set', 'benchmarker=test-double',
'http'],
{env: {NODEJS_BENCHMARK_ZERO_ALLOWED: 1}});
child.on('exit', (code, signal) => {
Expand Down