mirror of
https://github.com/nodejs/node.git
synced 2025-05-02 20:25:27 +00:00

Mostly shared/duplicated logic between all benchmark test files, so creating a new common module to store it. PR-URL: https://github.com/nodejs/node/pull/15004 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
14 lines
296 B
JavaScript
14 lines
296 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
runBenchmark('timers',
|
|
[
|
|
'type=depth',
|
|
'millions=0.000001',
|
|
'thousands=0.001'
|
|
],
|
|
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|