repositories
/
benchmarks-js.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into combined-prs-branch
[benchmarks-js.git]
/
quick-select.mjs
diff --git
a/quick-select.mjs
b/quick-select.mjs
index 49dc7057b5c70d30ad5894169cabfd02df409516..5fc3ef379d9ee7af6e82c5226f25cfb3d36d4f51 100644
(file)
--- a/
quick-select.mjs
+++ b/
quick-select.mjs
@@
-27,7
+27,7
@@
const tasksMap = generateRandomTasksMap(60, 20)
*/
function loopSelect (tasksMap) {
let minKey
*/
function loopSelect (tasksMap) {
let minKey
- let minValue =
Infinity
+ let minValue =
Number.POSITIVE_INFINITY
for (const [key, value] of tasksMap) {
if (value === 0) {
return key
for (const [key, value] of tasksMap) {
if (value === 0) {
return key
@@
-250,5
+250,5
@@
group('Quick select', () => {
})
await run({
})
await run({
- units: true
+ units: true
,
})
})