summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
662a730)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
-benchmark/results/
\ No newline at end of file
"dependencies": {
"benny": "^3.7.1",
"microtime": "^3.1.1",
"dependencies": {
"benny": "^3.7.1",
"microtime": "^3.1.1",
- "uuid": "^9.0.0",
- "uuidv4": "^6.2.13"
},
"devDependencies": {
"eslint": "^8.26.0",
},
"devDependencies": {
"eslint": "^8.26.0",
*
*/
async function asyncFunction () {
*
*/
async function asyncFunction () {
const Benchmark = require('benny')
const crypto = require('crypto')
const Benchmark = require('benny')
const crypto = require('crypto')
-const { v4: uuidv4 } = require('uuid')
-const { uuid } = require('uuidv4')
+const { v4: uuid } = require('uuid')
Benchmark.suite(
'UUIDv4 generator',
Benchmark.suite(
'UUIDv4 generator',
crypto.randomUUID()
}),
Benchmark.add('uuid', () => {
crypto.randomUUID()
}),
Benchmark.add('uuid', () => {
- uuidv4()
- }),
- Benchmark.add('uuidv4', () => {
uuid()
}),
Benchmark.cycle(),
uuid()
}),
Benchmark.cycle(),