Removing bench on id generation , we are using a counter for now
authoraardizio <alessandroardizio94@gmail.com>
Tue, 21 Jan 2020 19:03:06 +0000 (20:03 +0100)
committeraardizio <alessandroardizio94@gmail.com>
Tue, 21 Jan 2020 19:03:06 +0000 (20:03 +0100)
benchmarks/idgen.js [deleted file]

diff --git a/benchmarks/idgen.js b/benchmarks/idgen.js
deleted file mode 100644 (file)
index 405b944..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-const uuidv1 = require('uuid/v1')
-const uuidv4 = require('uuid/v4')
-const uuidv5 = require('uuid/v5')
-const Benchmark = require('benchmark')
-const suite = new Benchmark.Suite()
-const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341'
-
-// add tests
-suite.add('uuid v4', function () {
-  uuidv4()
-})
-  .add('uuid v5', function () {
-    uuidv5('Hello, World!', MY_NAMESPACE)
-  })
-  .add('uuid v1', async function () {
-    uuidv1()
-  })
-// add listeners
-  .on('cycle', function (event) {
-    console.log(String(event.target))
-  })
-  .on('complete', function () {
-    this.filter('fastest').map('name')
-    console.log('Fastest is ' + this.filter('fastest').map('name'))
-  })
-// run async
-  .run({ async: true })