bench: add back @napi-rs/uuid (#360)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by LongYinan · committed by GitHub · parent acd897f · Browse files · 3 files·+133 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+133 added−0 removed
- tests:+4 added−0 removed
- other:+129 added−0 removed
Provenance
- Commit
a8f4099- Tree
628db9c- Author
LongYinan <lynweklm@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
acd897f
3 files changed+133 added−0 removed
modified:test/benchmark.js+4 added
12345678925 unmodified lines353637383940414243444572 unmodified lines#!/usr/bin/env node
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')let uidSafe = require('uid-safe')25 unmodified lines }) .add('uid/secure', () => { uidSecure(32) }) .add('@napi-rs/uuid', () => { napiV4() }) .add('@lukeed/uuid', () => { lukeed4() }) .add('nanoid', () => {72 unmodified linesmodified:package.json+1 added
33 unmodified lines34 "devDependencies": {35 "@babel/core": "^7.17.9",36 "@logux/eslint-config": "^47.2.0",37 "@lukeed/uuid": "^2.0.0",38+ "@napi-rs/uuid": "^0.2.1",39 "@originjs/vite-plugin-commonjs": "^1.0.3",40 "@size-limit/dual-publish": "^7.0.8",41 "@size-limit/file": "^7.0.8",42 "@size-limit/webpack": "^7.0.8",129 unmodified linesmodified:pnpm-lock.yaml+128 added
2 unmodified lines3 specifiers:4 '@babel/core': ^7.17.95 '@logux/eslint-config': ^47.2.06 '@lukeed/uuid': ^2.0.07+ '@napi-rs/uuid': ^0.2.18 '@originjs/vite-plugin-commonjs': ^1.0.39 '@size-limit/dual-publish': ^7.0.810 '@size-limit/file': ^7.0.811 '@size-limit/webpack': ^7.0.825 unmodified lines37 devDependencies:38 '@babel/core': 7.17.939 '@logux/eslint-config': 47.2.0_6c64d8a29505f396e85a7a09189cde6540 '@lukeed/uuid': 2.0.041+ '@napi-rs/uuid': 0.2.142 '@originjs/vite-plugin-commonjs': 1.0.343 '@size-limit/dual-publish': 7.0.8_b40b5d0881dd218300fd8109c0e7f5d144 '@size-limit/file': 7.0.8_size-limit@7.0.845 '@size-limit/webpack': 7.0.8_size-limit@7.0.8305 unmodified lines351 dependencies:352 '@lukeed/csprng': 1.0.1353 dev: true354 355+ /@napi-rs/uuid-android-arm-eabi/0.2.1:356+ resolution: {integrity: sha512-VXhPhyZgBxvCZ5KOVwGjl47nDAFeqgxtCnyZ0Ddzwu/oh6WU3ik6CT7PHCdSLIizCmIBuBWNZKGyZQB0Dlbwjg==}357+ engines: {node: '>= 10'}358+ cpu: [arm]359+ os: [android]360+ requiresBuild: true361+ dev: true362+ optional: true363+364+ /@napi-rs/uuid-android-arm64/0.2.1:365+ resolution: {integrity: sha512-nXtqn6p1mUyNMKWowKTzBFMX8UsSXgxzq+PlnzMUTRgt50dyYmpJSLMUie7gb8II/cEcRTaZDca7cbD4b3j4ww==}366+ engines: {node: '>= 10'}367+ cpu: [arm64]368+ os: [android]369+ requiresBuild: true370+ dev: true371+ optional: true372+373+ /@napi-rs/uuid-darwin-arm64/0.2.1:374+ resolution: {integrity: sha512-QmHfiTyfiqQ0QyLYqW29Y6G26QYTvZVcZgrZx6RznBLn4G7U+qp7+rvg9j8oLwH4RbBuTVXw1klG2jHfy5prog==}375+ engines: {node: '>= 10'}376+ cpu: [arm64]377+ os: [darwin]378+ requiresBuild: true379+ dev: true380+ optional: true381+382+ /@napi-rs/uuid-darwin-x64/0.2.1:383+ resolution: {integrity: sha512-uCXiDQzgavd5457vfz1lCuDhz8HLK+9p8h9pYzfXs+dvg4WmRNX0WFSrmZZHw3UeBWZwio1cdGn/W4zXXCRAZA==}384+ engines: {node: '>= 10'}385+ cpu: [x64]386+ os: [darwin]387+ requiresBuild: true388+ dev: true389+ optional: true390+391+ /@napi-rs/uuid-freebsd-x64/0.2.1:392+ resolution: {integrity: sha512-SSO5Kqzg/X+Kn2JtQbvdtBgSJ/tX/IxDJvpVUMnQh8sxT1mDuk0+msVEiZFZO44b7So9zXWRC1iqMKRoYW+WLA==}393+ engines: {node: '>= 10'}394+ cpu: [x64]395+ os: [freebsd]396+ requiresBuild: true397+ dev: true398+ optional: true399+400+ /@napi-rs/uuid-linux-arm-gnueabihf/0.2.1:401+ resolution: {integrity: sha512-ABzL7DTTUBMWw92pI7Q+eaFCFR5w2NNE0AbTJWomAGqZa94e/jSiOTFmRAPH/vc8H6pheJb8DAtYbXiqh41KMg==}402+ engines: {node: '>= 10'}403+ cpu: [arm]404+ os: [linux]405+ requiresBuild: true406+ dev: true407+ optional: true408+409+ /@napi-rs/uuid-linux-arm64-gnu/0.2.1:410+ resolution: {integrity: sha512-aNwaJ6i1tcewr0cQuF3SiLydThRRV6LhonQ1c8pbZCtoFxZD8GFj0J5kZ5viXaSP60Hx8MPEAWHRzlWCKxyz1w==}411+ engines: {node: '>= 10'}412+ cpu: [arm64]413+ os: [linux]414+ requiresBuild: true415+ dev: true416+ optional: true417+418+ /@napi-rs/uuid-linux-arm64-musl/0.2.1:419+ resolution: {integrity: sha512-+8mPf+Tw457NchYINnmcAnrK4A3DRCB+agooHIm3xr1Tmiv495EIWzd18KBIr2pUbxhQQsJhh+k5O2JWymVNTg==}420+ engines: {node: '>= 10'}421+ cpu: [arm64]422+ os: [linux]423+ requiresBuild: true424+ dev: true425+ optional: true426+427+ /@napi-rs/uuid-linux-x64-gnu/0.2.1:428+ resolution: {integrity: sha512-wEe/3DQjBIsxi9mwXf+62RuTXkZ4sLHks/BQuR9X06Lr1AsVp7uQLeE3GxlXIwsYpxRssmwTT5KcZLMKujFRwQ==}429+ engines: {node: '>= 10'}430+ cpu: [x64]431+ os: [linux]432+ requiresBuild: true433+ dev: true434+ optional: true435+436+ /@napi-rs/uuid-linux-x64-musl/0.2.1:437+ resolution: {integrity: sha512-8yGeBX7WdDufS0k8PFBIFKBpQ5iw9jRISw/XUYUA2jxsMVKznLuGajyMHM8BEN+tcYW03em91yXdNjLIPlhQRA==}438+ engines: {node: '>= 10'}439+ cpu: [x64]440+ os: [linux]441+ requiresBuild: true442+ dev: true443+ optional: true444+445+ /@napi-rs/uuid-win32-arm64-msvc/0.2.1:446+ resolution: {integrity: sha512-ZRuWvO8T1KJFdTMlFwKRAVXI+/igILDEPrD6QwNgmUpOgJRtXPqK6GKg39NwvWxzMiBzFuFPcqJxBgbT+15YUw==}447+ engines: {node: '>= 10'}448+ cpu: [arm64]449+ os: [win32]450+ requiresBuild: true451+ dev: true452+ optional: true453+454+ /@napi-rs/uuid-win32-x64-msvc/0.2.1:455+ resolution: {integrity: sha512-I7iwDHZKoGBtkjrrwaK8opgrLZzGmjU0YKYOY2OU3gRPh98MYTwvwbIm2GQ4Uk7qiitRosTkpXX5MVNUsIn6iw==}456+ engines: {node: '>= 10'}457+ cpu: [x64]458+ os: [win32]459+ requiresBuild: true460+ dev: true461+ optional: true462+463+ /@napi-rs/uuid/0.2.1:464+ resolution: {integrity: sha512-QLoFoElPdcNrUJr8Fo2MP6+XnBlOstP6uhkmS+d7BZTm8kQAe+Gc00h1WJ4+jMxsSUQ7b/t3WgZ5Jxznr3XTyQ==}465+ engines: {node: '>= 10'}466+ optionalDependencies:467+ '@napi-rs/uuid-android-arm-eabi': 0.2.1468+ '@napi-rs/uuid-android-arm64': 0.2.1469+ '@napi-rs/uuid-darwin-arm64': 0.2.1470+ '@napi-rs/uuid-darwin-x64': 0.2.1471+ '@napi-rs/uuid-freebsd-x64': 0.2.1472+ '@napi-rs/uuid-linux-arm-gnueabihf': 0.2.1473+ '@napi-rs/uuid-linux-arm64-gnu': 0.2.1474+ '@napi-rs/uuid-linux-arm64-musl': 0.2.1475+ '@napi-rs/uuid-linux-x64-gnu': 0.2.1476+ '@napi-rs/uuid-linux-x64-musl': 0.2.1477+ '@napi-rs/uuid-win32-arm64-msvc': 0.2.1478+ '@napi-rs/uuid-win32-x64-msvc': 0.2.1479+ dev: true480+481 /@nodelib/fs.scandir/2.1.5:482 resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}483 engines: {node: '>= 8'}484 dependencies:2434 unmodified lines