Skip to content

Commit

Permalink
bench: add back @napi-rs/uuid (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Apr 29, 2022
1 parent acd897f commit a8f4099
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -35,6 +35,7 @@
"@babel/core": "^7.17.9",
"@logux/eslint-config": "^47.2.0",
"@lukeed/uuid": "^2.0.0",
"@napi-rs/uuid": "^0.2.1",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@size-limit/dual-publish": "^7.0.8",
"@size-limit/file": "^7.0.8",
Expand Down
128 changes: 128 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions test/benchmark.js
Expand Up @@ -2,6 +2,7 @@

let { uid: uidSecure } = require('uid/secure')
let { v4: lukeed4 } = require('@lukeed/uuid')
let { v4: napiV4 } = require('@napi-rs/uuid')
let { v4: uuid4 } = require('uuid')
let benchmark = require('benchmark')
let shortid = require('shortid')
Expand Down Expand Up @@ -35,6 +36,9 @@ suite
.add('uid/secure', () => {
uidSecure(32)
})
.add('@napi-rs/uuid', () => {
napiV4()
})
.add('@lukeed/uuid', () => {
lukeed4()
})
Expand Down

0 comments on commit a8f4099

Please sign in to comment.