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:
Charles T Wall III 2017-10-06 15:47:54 -04:00 committed by Ruben Bridgewater
parent 6a9fd06173
commit be3ac440dc
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762
2 changed files with 24 additions and 0 deletions

View 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'
]);

View File

@ -0,0 +1,11 @@
'use strict';
require('../common');
const runBenchmark = require('../common/benchmark');
runBenchmark('module', [
'thousands=.001',
'useCache=true',
'fullPath=true'
]);