UUID versions
Opened this issue · 1 comments
icebob commented
UUID versions
Dependencies
- uuid@11.0.5
Setup
const uuid = require("uuid");
const NS = uuid.v4();
v1
return uuid.v1();
v3
return uuid.v3("benchmarker", NS);
v4
return uuid.v4();
v5
return uuid.v5("benchmarker", NS);
v6
return uuid.v6();
v7
return uuid.v7();
github-actions commented
UUID versions
Name | Time | Diff | Ops/sec |
---|---|---|---|
v1 | 630ns | -72.64% | 1,586,136 |
v3 | 3μs | -94.84% | 298,998 |
v4 | 172ns | 0% | 5,797,740 |
v5 | 3μs | -94.79% | 301,889 |
v6 | 897ns | -80.79% | 1,113,740 |
v7 | 609ns | -71.69% | 1,641,134 |
Runner Info
- Node.js: 20.19.0
- V8: 11.3.244.8-node.26
- Platform: Linux 6.8.0-1021-azure x64
- CPU: AMD EPYC 7763 64-Core Processor (4 cores)
- Date: 2025-03-26T20:32:02.576Z
- Benchmarkify: 4.0.0