Skip to content

Commit a8f4099

Browse files
authored
bench: add back @napi-rs/uuid (#360)
1 parent acd897f commit a8f4099

File tree

3 files changed

+133
-0
lines changed

3 files changed

+133
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"@babel/core": "^7.17.9",
3636
"@logux/eslint-config": "^47.2.0",
3737
"@lukeed/uuid": "^2.0.0",
38+
"@napi-rs/uuid": "^0.2.1",
3839
"@originjs/vite-plugin-commonjs": "^1.0.3",
3940
"@size-limit/dual-publish": "^7.0.8",
4041
"@size-limit/file": "^7.0.8",

pnpm-lock.yaml

+128
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/benchmark.js

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
let { uid: uidSecure } = require('uid/secure')
44
let { v4: lukeed4 } = require('@lukeed/uuid')
5+
let { v4: napiV4 } = require('@napi-rs/uuid')
56
let { v4: uuid4 } = require('uuid')
67
let benchmark = require('benchmark')
78
let shortid = require('shortid')
@@ -35,6 +36,9 @@ suite
3536
.add('uid/secure', () => {
3637
uidSecure(32)
3738
})
39+
.add('@napi-rs/uuid', () => {
40+
napiV4()
41+
})
3842
.add('@lukeed/uuid', () => {
3943
lukeed4()
4044
})

0 commit comments

Comments
 (0)