Skip to content

Commit fd4aa90

Browse files
Added run with collate=false to benchmark
1 parent 60a08c8 commit fd4aa90

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,9 @@ There are a few other libraries that do the same thing, although none offer the
225225

226226
Library | ops/sec
227227
---|---:
228-
object-selectors (string selector) | 91,700 ops/sec ±10.38% (85 runs sampled)
229-
object-selectors (pre-compiled) | 1,041,568 ops/sec ±2.11% (90 runs sampled)
228+
object-selectors (string selector, collation auto) | 91,700 ops/sec ±10.38% (85 runs sampled)
229+
object-selectors (pre-compiled, collation auto) | 1,041,568 ops/sec ±2.11% (90 runs sampled)
230+
object-selectors (pre-compiled, collation off) | 1,183,696 ops/sec ±1.58% (87 runs sampled)
230231
[easy-object-selector](https://github.com/deltavi/easy-object-selector) | 4,080,250 ops/sec ±1.58% (93 runs sampled)
231232
[object-path](https://github.com/mariocasciaro/object-path) | 997,770 ops/sec ±6.47% (81 runs sampled)
232233
[dot-prop](https://github.com/sindresorhus/dot-prop) | 3,310,430 ops/sec ±8.16% (70 runs sampled)

bench.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ new Benchmark.Suite('object-selectors vs. easy-object-selector')
1717
.add('object-selectors (pre-compiled)', function() {
1818
get(compiled, obj)
1919
})
20+
.add('object-selectors (pre-compiled, no collation)', function() {
21+
get(compiled, obj, { collate: false })
22+
})
2023
.add('easy-object-selector', function() {
2124
easyobjectselector.select(obj, selector);
2225
})

0 commit comments

Comments
 (0)