Skip to content

Commit a03019b

Browse files
committed
debug: print time of all benchmarks done
1 parent 1ac91d8 commit a03019b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bin.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,14 @@ async function main() {
151151
duration: program.duration || 5000,
152152
executions: program.executions || 1000000
153153
};
154+
155+
const t1 = Date.now()
156+
154157
const result = await runBenchmark(input, previous, options);
155158

156-
debug && console.log('\n' + `bipbip: result done`)
159+
const t2 = Date.now()
160+
161+
debug && console.log('\n' + `bipbip: all benchmarks done in ${(t2 - t1) / 1000} seconds`)
157162

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

0 commit comments

Comments
 (0)