From: aardizio Date: Tue, 21 Jan 2020 19:03:06 +0000 (+0100) Subject: Removing bench on id generation , we are using a counter for now X-Git-Tag: v0.0.1~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3fc1a3e9163bdcdff495671c7588c6a94e0c2981;p=poolifier.git Removing bench on id generation , we are using a counter for now --- 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 })