Skip to content

Commit

Permalink
Update benchmark modules
Browse files Browse the repository at this point in the history
* Update node modules.
* Drop yarn module bench.
* Fix shellcheck issues.
  • Loading branch information
zertosh committed Oct 28, 2020
1 parent 8ce458f commit 7ea939a
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 115,724 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
bench/fixtures
test/fixtures
4 changes: 2 additions & 2 deletions bench/_measure.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = (name, withCache, callback) => {
let s;

const logs = [];
logs.push(`node: ${process.uptime() * 1000}ms`);
logs.push(`node: ${parseInt(process.uptime() * 1000, 10)}ms`);

// So each test gets its own cache
module.filename = module.parent.filename;
Expand All @@ -21,7 +21,7 @@ module.exports = (name, withCache, callback) => {
s = Date.now();
process.on('exit', () => {
logs.push(`exit: ${Date.now() - s}ms`);
logs.push(`total: ${process.uptime() * 1000}ms`);
logs.push(`total: ${parseInt(process.uptime() * 1000, 10)}ms`);
console.log(logs.join('\t'));
});
};
Loading

0 comments on commit 7ea939a

Please sign in to comment.