Skip to content

Commit

Permalink
🎨 Move scripts for benchmark to cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
dubzzz committed Apr 4, 2020
1 parent 558c192 commit 9e24a95
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions perf/benchmark-prng.js → perf/benchmark-prng.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
// Run it:
// $: npm run build:bench:old
// $: npm run build:bench:new
// $: node perf/benchmark-prng.js
// $: node perf/benchmark-prng.cjs

const Benchmark = require('benchmark');
const { genFor } = require('./helpers');
const { genFor } = require('./helpers.cjs');

const WARMUP_SAMPLES = 100;
const MIN_SAMPLES = 500;
Expand Down
8 changes: 4 additions & 4 deletions perf/benchmark.js → perf/benchmark.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
// Run it:
// $: npm run build:bench:old
// $: npm run build:bench:new
// $: node perf/benchmark.js
// $: node perf/benchmark.cjs
//
// Or against another generator:
// $: PROF_GEN="mersenne" node perf/benchmark.js
// $: PROF_GEN="mersenne" node perf/benchmark.cjs

const { genFor } = require('./helpers');
const { genFor } = require('./helpers.cjs');
const {
testGenerateWithSameDistribution,
testGenerateWithSkipDistributionSingle,
testGenerateWithSkipDistribution
} = require('./tasks');
} = require('./tasks.cjs');
const Benchmark = require('benchmark');
const prandRef = require('../lib/pure-rand');
const prandTest = require('../lib-new/pure-rand');
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions perf/profiler.js → perf/profiler.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// $: tsc --target es6
// $: node --prof --no-logfile-per-isolate perf/profiler.js
// $: node --prof-process v8.log > v8.out
const { genFor } = require('./helpers');
const { testGenerateWithSameDistribution, testGenerateWithSkipDistribution } = require('./tasks');
const { genFor } = require('./helpers.cjs');
const { testGenerateWithSameDistribution, testGenerateWithSkipDistribution } = require('./tasks.cjs');
const prand = require('../lib/pure-rand');

const NUM_TESTS = 10000000;
Expand Down
File renamed without changes.

0 comments on commit 9e24a95

Please sign in to comment.