Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
-benchmark/results/
\ No newline at end of file
+benchmark/results/
"dependencies": {
"benny": "^3.7.1",
"microtime": "^3.1.1",
- "uuid": "^9.0.0",
- "uuidv4": "^6.2.13"
+ "uuid": "^9.0.0"
},
"devDependencies": {
"eslint": "^8.26.0",
*
*/
async function asyncFunction () {
- await promise()
+ return await promise()
}
Benchmark.suite(
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',
crypto.randomUUID()
}),
Benchmark.add('uuid', () => {
- uuidv4()
- }),
- Benchmark.add('uuidv4', () => {
uuid()
}),
Benchmark.cycle(),