repositories
/
benchmarks-js.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
feat: add object hashing benchmarking
[benchmarks-js.git]
/
is-empty-object.mjs
diff --git
a/is-empty-object.mjs
b/is-empty-object.mjs
index 2d788816db5f5fb3afdece0a6e34a0861c23e4c4..842ae4a9ec812ee95e8f4e94e2445809e51f2305 100644
(file)
--- a/
is-empty-object.mjs
+++ b/
is-empty-object.mjs
@@
-22,10
+22,10
@@
group(`Is empty object with ${Object.keys(object).length} keys`, () => {
return obj?.constructor === Object && Object.keys(obj).length === 0
})
bench('lodash isEmpty', (obj = object) => {
-
return
_.isEmpty(obj)
+ _.isEmpty(obj)
})
bench('rambda isEmpty', (obj = object) => {
-
return
isEmpty(obj)
+ isEmpty(obj)
})
})