|
Benchmarking, the higher ops/sec the better.
Safari 12.0.1 on OS X 10.14.1.
Test 100 needles against 16 dictionaries of hostnames
- Set-based x 3,801 ops/sec ±1.01% (62 runs sampled)
- Regex-based x 370 ops/sec ±0.68% (60 runs sampled)
- Trie-based (1st-gen) x 15,679 ops/sec ±0.73% (63 runs sampled)
- Trie-based JS (2nd-gen) x 16,408 ops/sec ±2.50% (62 runs sampled)
Benchmarking, the higher ops/sec the better.
Firefox 63.0 on OS X 10.14.
Test 100 needles against 16 dictionaries of hostnames
- Set-based x 1,703 ops/sec ±3.46% (57 runs sampled)
- Regex-based x 4,210 ops/sec ±1.95% (26 runs sampled)
- Trie-based (1st-gen) x 9,961 ops/sec ±0.74% (65 runs sampled)
- Trie-based JS (2nd-gen) x 7,120 ops/sec ±0.61% (40 runs sampled)
- Trie-based WASM (2nd-gen) x 7,993 ops/sec ±0.81% (44 runs sampled)
Benchmarking, the higher ops/sec the better.
Chrome 70.0.3538.110 on OS X 10.14.1 64-bit.
Test 100 needles against 16 dictionaries of hostnames
- Set-based x 3,414 ops/sec ±5.66% (53 runs sampled)
- Regex-based x 4,667 ops/sec ±2.50% (28 runs sampled)
- Trie-based (1st-gen) x 10,665 ops/sec ±1.31% (56 runs sampled)
- Trie-based JS (2nd-gen) x 7,852 ops/sec ±1.66% (43 runs sampled)
- Trie-based WASM (2nd-gen) x 11,930 ops/sec ±2.49% (58 runs sampled)
MacOS 10.14.1Hardware: MacBook Pro (15-inch, 2017) Processor: 2.9 GHz Intel Core i7 Memory: 16 GB 2133 MHz LPDDR3 Graphics: Radeon Pro 560 4096 MB Intel HD Graphics 630 1536 MB |