File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -51,17 +51,17 @@ export default function benchmark(uuid, Benchmark) {
5151 // (which can happen on modern hardware and modern Node.js versions).
5252 }
5353 } )
54- . add ( 'uuid.v4()' , function ( ) {
54+ . add ( 'uuid.v4() using crypto.randomUUID ' , function ( ) {
5555 uuid . v4 ( ) ;
5656 } )
57+ . add ( 'uuid.v4() w/out crypto.randomUUID' , function ( ) {
58+ uuid . v4 ( { } ) ; // passing an object instead of null bypasses native.randomUUID
59+ } )
5760 . add ( 'uuid.v4() fill existing array' , function ( ) {
5861 uuid . v4 ( null , array , 0 ) ;
5962 } )
60- . add ( 'uuid.v4() without native generation' , function ( ) {
61- uuid . v4 ( { } ) ; // passing an object instead of null bypasses native.randomUUID
62- } )
63- . add ( 'uuid.v3()' , function ( ) {
64- uuid . v3 ( 'hello.example.com' , uuid . v3 . DNS ) ;
63+ . add ( 'crypto.randomUUID()' , function ( ) {
64+ crypto . randomUUID ( ) ;
6565 } )
6666 . add ( 'uuid.v5()' , function ( ) {
6767 uuid . v5 ( 'hello.example.com' , uuid . v5 . DNS ) ;
Original file line number Diff line number Diff line change 1- import * as uuid from './node_modules/uuid/dist/esm -browser/index.js' ;
1+ import * as uuid from './node_modules/uuid/dist-browser/index.js' ;
22import './node_modules/lodash/lodash.js' ;
33import './node_modules/benchmark/benchmark.js' ;
44
Original file line number Diff line number Diff line change 1- import * as uuid from './node_modules/uuid/dist/esm -browser/index.js' ;
1+ import * as uuid from './node_modules/uuid/dist-browser/index.js' ;
22import {
33 MAX as MAX_UUID ,
44 NIL as NIL_UUID ,
@@ -14,7 +14,7 @@ import {
1414 v6 as uuidv6 ,
1515 v6ToV1 as uuidv6ToV1 ,
1616 v7 as uuidv7 ,
17- } from './node_modules/uuid/dist/esm -browser/index.js' ;
17+ } from './node_modules/uuid/dist-browser/index.js' ;
1818
1919// Import attribute syntax is still awaiting finalization. In the meantime we
2020// use dynamic import to allows to specifyg both "assert" and "with" clauses.
You can’t perform that action at this time.
0 commit comments