build(deps-dev): apply updates
[benchmarks-js.git] / uuid-generator.mjs
1 import { randomUUID } from 'node:crypto'
2
3 import { bench, group, run } from 'tatami-ng'
4 import { v4 as uuid } from 'uuid'
5
6 group('UUIDv4 generator', () => {
7 bench('randomUUID', () => {
8 randomUUID()
9 })
10 bench('uuid', () => {
11 uuid()
12 })
13 })
14
15 await run({
16 units: true,
17 })