From 3fc1a3e9163bdcdff495671c7588c6a94e0c2981 Mon Sep 17 00:00:00 2001 From: aardizio Date: Tue, 21 Jan 2020 20:03:06 +0100 Subject: [PATCH] Removing bench on id generation , we are using a counter for now --- benchmarks/idgen.js | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 benchmarks/idgen.js diff --git a/benchmarks/idgen.js b/benchmarks/idgen.js deleted file mode 100644 index 405b9445..00000000 --- a/benchmarks/idgen.js +++ /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 }) -- 2.34.1