Skip to content
This repository has been archived by the owner on Feb 6, 2018. It is now read-only.

Honest Benchmarks #47

Merged
merged 2 commits into from
May 9, 2016
Merged

Honest Benchmarks #47

merged 2 commits into from
May 9, 2016

Conversation

blond
Copy link
Member

@blond blond commented May 7, 2016

The ENB and scan-level add mtime to file info (used fs.statSync()).

To comparison was honest need run fs.statSync() for each file.

                         flat level
                bem-walk x 13,091 ops/sec ±7.22% (70 runs sampled) mean 0.08 ms
    bem-walk + fs.stat() x 5,169 ops/sec ±3.20% (69 runs sampled) mean 0.19 ms
bem-walk + fs.statSync() x 9,522 ops/sec ±3.43% (78 runs sampled) mean 0.11 ms
                     enb x 10,469 ops/sec ±1.89% (79 runs sampled) mean 0.10 ms
                   scanl x 10,646 ops/sec ±6.66% (68 runs sampled) mean 0.09 ms

                         nested level
                bem-walk x 3,693 ops/sec ±2.78% (71 runs sampled) mean 0.27 ms
    bem-walk + fs.stat() x 2,511 ops/sec ±3.92% (68 runs sampled) mean 0.40 ms
bem-walk + fs.statSync() x 3,392 ops/sec ±3.21% (74 runs sampled) mean 0.29 ms
                     enb x 6,762 ops/sec ±1.50% (82 runs sampled) mean 0.15 ms
                   scanl x 4,355 ops/sec ±4.11% (73 runs sampled) mean 0.23 ms

                         bem-bl
                bem-walk x 195 ops/sec ±4.01% (67 runs sampled) mean 5.12 ms
    bem-walk + fs.stat() x 106 ops/sec ±3.09% (69 runs sampled) mean 9.42 ms
bem-walk + fs.statSync() x 145 ops/sec ±2.30% (75 runs sampled) mean 6.89 ms
                     enb x 164 ops/sec ±2.74% (82 runs sampled) mean 6.12 ms
                   scanl x 139 ops/sec ±3.18% (78 runs sampled) mean 7.22 ms

                         bem-components
                bem-walk x 139 ops/sec ±3.29% (72 runs sampled) mean 7.20 ms
    bem-walk + fs.stat() x 60.70 ops/sec ±2.77% (69 runs sampled) mean 16.48 ms
bem-walk + fs.statSync() x 85.82 ops/sec ±2.44% (77 runs sampled) mean 11.65 ms
                     enb x 93.10 ops/sec ±1.67% (71 runs sampled) mean 10.74 ms
                   scanl x 82.47 ops/sec ±2.79% (74 runs sampled) mean 12.13 ms

@blond
Copy link
Member Author

blond commented May 7, 2016

/cc @tadatuta @zxqfox @Yeti-or

blond added 2 commits May 7, 2016 19:24
The ENB and `scan-level` add `mtime` to file info (used `fs.statSync()`).

To comparison was honest need run `fs.statSync()` for each file.
@tadatuta
Copy link
Member

tadatuta commented May 7, 2016

sad news

@blond blond merged commit a51081f into master May 9, 2016
@blond blond deleted the honest-benchmarks branch May 9, 2016 08:53
@blond blond removed the in progress label May 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants