diff --git a/benchmark.js b/benchmark.js index a3f4e72..bec63c8 100644 --- a/benchmark.js +++ b/benchmark.js @@ -76,8 +76,15 @@ suite.add('hyperid - fixed length, url safe', function () { suite.on('cycle', cycle) -suite.run() +suite.on('complete', function () { + console.log('\n'); + console.log(`Fastest is ${this.filter('fastest').map('name')}`); + console.log(`Slowest is ${this.filter('slowest').map('name')}`); +}); + +suite.run({async: true}) + function cycle (e) { console.log(e.target.toString()) -} +} \ No newline at end of file diff --git a/package.json b/package.json index 996df9c..664c8b7 100644 --- a/package.json +++ b/package.json @@ -30,24 +30,24 @@ }, "homepage": "https://github.com/mcollina/hyperid#readme", "devDependencies": { - "@napi-rs/uuid": "^0.1.0", + "@napi-rs/uuid": "^0.2.0", "benchmark": "^2.1.4", - "bloomfilter": "0.0.18", + "bloomfilter": "^0.0.18", "hashids": "^2.2.8", - "nanoid": "^3.1.20", - "nid": "^1.1.0", + "nanoid": "^3.0.0", + "nid": "^2.0.1", "pre-commit": "^1.2.2", - "shortid": "^2.2.15", - "standard": "^16.0.3", + "proxyquire": "^2.1.3", + "shortid": "^2.2.16", + "standard": "^17.1.0", "tap-dot": "^2.0.0", "tape": "^5.0.0", - "typescript": "^4.3.4", - "proxyquire": "^2.1.3" + "typescript": "^5.4.5" }, "dependencies": { + "buffer": "^5.2.1", "uuid": "^8.3.2", - "uuid-parse": "^1.1.0", - "buffer": "^5.2.1" + "uuid-parse": "^1.1.0" }, "browser": { "./uuid-node.js": "./uuid-browser.js"