Skip to content

Commit

Permalink
debug: print time of all benchmarks done
Browse files Browse the repository at this point in the history
  • Loading branch information
milahu committed Aug 31, 2023
1 parent 1ac91d8 commit a03019b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,14 @@ async function main() {
duration: program.duration || 5000,
executions: program.executions || 1000000
};

const t1 = Date.now()

const result = await runBenchmark(input, previous, options);

debug && console.log('\n' + `bipbip: result done`)
const t2 = Date.now()

debug && console.log('\n' + `bipbip: all benchmarks done in ${(t2 - t1) / 1000} seconds`)

if (program.save) {
debug && console.log('\n' + `bipbip: save ${program.save} ...`)
Expand Down

0 comments on commit a03019b

Please sign in to comment.