repositories
/
benchmarks-js.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
switch to ESM
[benchmarks-js.git]
/
uuid-generator.mjs
diff --git
a/uuid-generator.js
b/uuid-generator.mjs
similarity index 83%
rename from
uuid-generator.js
rename to
uuid-generator.mjs
index 08641c12ebc451c01be8e5eb56d5f8728600cec5..92e15d848468cc576ed91f7d06ba4d134a4ad041 100644
(file)
--- a/
uuid-generator.js
+++ b/
uuid-generator.mjs
@@
-1,6
+1,6
@@
-const crypto = require('crypto')
-const Benchmark = require('benny')
-const { v4: uuid } = require('uuid')
+import crypto from 'crypto'
+import Benchmark from 'benny'
+import { v4 as uuid } from 'uuid'
Benchmark.suite(
'UUIDv4 generator',