test: create benchmark test for misc and module
PR-URL: https://github.com/nodejs/node/pull/16044 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
6a9fd06173
commit
be3ac440dc
13
test/parallel/test-benchmark-misc.js
Normal file
13
test/parallel/test-benchmark-misc.js
Normal file
@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
require('../common');
|
||||
|
||||
const runBenchmark = require('../common/benchmark');
|
||||
|
||||
runBenchmark('misc', [
|
||||
'n=1',
|
||||
'val=magyarország.icom.museum',
|
||||
'millions=.000001',
|
||||
'type=extend',
|
||||
'concat=0'
|
||||
]);
|
11
test/parallel/test-benchmark-module.js
Normal file
11
test/parallel/test-benchmark-module.js
Normal file
@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
require('../common');
|
||||
|
||||
const runBenchmark = require('../common/benchmark');
|
||||
|
||||
runBenchmark('module', [
|
||||
'thousands=.001',
|
||||
'useCache=true',
|
||||
'fullPath=true'
|
||||
]);
|
Loading…
x
Reference in New Issue
Block a user