Skip to content

Commit

Permalink
Fix benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Aug 25, 2019
1 parent 9d8cad2 commit 5273c95
Show file tree
Hide file tree
Showing 4 changed files with 796 additions and 32 deletions.
36 changes: 35 additions & 1 deletion benchmarks/main.js
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
export const tasks = []
import { hrtime } from 'process'
import { performance } from 'perf_hooks'

export const tasks = [
{
id: 'hrtime',
title: 'process.hrtime()',
main: () => hrtime(),
},
{
id: 'hrtime-bigint',
title: 'process.hrtime.bigint()',
main: () => hrtime.bigint(),
},
{
id: 'performance-now',
title: 'performance.now()',
main: () => performance.now(),
},
{
id: 'date-now',
title: 'Date.now()',
main: () => Date.now(),
},
{
id: 'date-gettime',
title: 'new Date().getTime()',
main: () => new Date().getTime(),
},
{
id: 'number-new-date',
title: 'Number(new Date())',
main: () => Number(new Date()),
},
]
Loading

0 comments on commit 5273c95

Please sign in to comment.