mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
benchmark: remove redundant +
PR-URL: https://github.com/nodejs/node/pull/17803 Refs: https://github.com/nodejs/code-and-learn/issues/72 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
committed by
Myles Borins
parent
a4e8a929ca
commit
deb70417cd
@@ -26,9 +26,9 @@ function createObj(source, add = '') {
|
||||
}
|
||||
|
||||
function main(conf) {
|
||||
const size = +conf.size;
|
||||
const size = conf.size;
|
||||
// TODO: Fix this "hack"
|
||||
const n = (+conf.n) / size;
|
||||
const n = conf.n / size;
|
||||
var i;
|
||||
|
||||
const source = Array.apply(null, Array(size));
|
||||
|
||||
Reference in New Issue
Block a user