mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
benchmark: reformat code for clarity
Some of the benchmark code can be a little dense. Not *very* hard to read but perhaps harder than it needs to be. These changes (many of them whitespace-only) hopefully improve readability. There are also a few cases of `assert.equal()` that are changed to `assert.strictEqual()`. PR-URL: https://github.com/nodejs/node/pull/9790 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
d31a41149d
commit
88464ac6ac
17 files changed
+204
-79
No files matched your search
@@ -3,14 +3,18 @@ var common = require('../common.js');
|
||||
var querystring = require('querystring');
|
||||
var v8 = require('v8');
|
||||
|
||||
var types = [
|
||||
'noencode',
|
||||
'multicharsep',
|
||||
'encodemany',
|
||||
'encodelast',
|
||||
'multivalue',
|
||||
'multivaluemany',
|
||||
'manypairs'
|
||||
];
|
||||
|
||||
var bench = common.createBenchmark(main, {
|
||||
type: ['noencode',
|
||||
'multicharsep',
|
||||
'encodemany',
|
||||
'encodelast',
|
||||
'multivalue',
|
||||
'multivaluemany',
|
||||
'manypairs'],
|
||||
type: types,
|
||||
n: [1e6],
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user