Skip to content

Commit ec2a2b6

Browse files
author
Kylie Stewart
committed
Update benchmarking diagram with latest stats (#82)
* Update benchmarking diagram with latest stats * Use a higher res png and include versions * Export to PDF → convert to PNG for higher res chart * Improve color contrast
1 parent 5031f5f commit ec2a2b6

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ please flag to your reviewers and have a discussion about whether or not the siz
134134
`yarn -s compress && yarn size-min-gz`
135135
* Grabbing that output and replacing the current size in the bundle_img: (`https://img.shields.io/badge/minzipped%20size-<NEW_SIZE>%20B-flatgreen.svg`)
136136
For example, if the new size is `650`, the new bundle_img will be `https://img.shields.io/badge/minzipped%20size-650%20B-flatgreen.svg`
137+
* _Org members:_ Update the README's benchmark comparison png using this [internal Google Sheet template](https://docs.google.com/spreadsheets/d/1GuqpO0wgPjQ9usx6sR3t0Y_HTmAdRqjXkSjs3SBsmTc/edit?usp=sharing_eip&ts=5ed1642f).
137138

138139
## Releasing a new version to NPM
139140

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,17 @@ Each "operation" consists of running all relevant tests. The React benchmark
8888
uses both the generic tests and the react tests; these runs will be slower
8989
simply because there are more tests in each operation.
9090

91-
The results below are from a local test on a laptop.
91+
The results below are from a local test on a laptop _(stats last updated 6/2/2020)_:
9292

9393
### Generic Data
9494

9595
```
96-
react-fast-compare x 157,863 ops/sec ±0.54% (94 runs sampled)
97-
fast-deep-equal x 149,877 ops/sec ±0.76% (93 runs sampled)
98-
lodash.isEqual x 33,298 ops/sec ±0.70% (93 runs sampled)
99-
nano-equal x 144,836 ops/sec ±0.51% (94 runs sampled)
100-
shallow-equal-fuzzy x 110,192 ops/sec ±0.57% (95 runs sampled)
101-
fastest: react-fast-compare
96+
react-fast-compare x 177,600 ops/sec ±1.73% (92 runs sampled)
97+
fast-deep-equal x 184,211 ops/sec ±0.65% (87 runs sampled)
98+
lodash.isEqual x 39,826 ops/sec ±1.32% (86 runs sampled)
99+
nano-equal x 176,023 ops/sec ±0.89% (92 runs sampled)
100+
shallow-equal-fuzzy x 146,355 ops/sec ±0.64% (89 runs sampled)
101+
fastest: fast-deep-equal
102102
```
103103

104104
`react-fast-compare` and `fast-deep-equal` should be the same speed for these
@@ -108,9 +108,9 @@ tests; any difference is just noise. `react-fast-compare` won't be faster than
108108
### React and Generic Data
109109

110110
```
111-
react-fast-compare x 64,102 ops/sec ±0.36% (94 runs sampled)
112-
fast-deep-equal x 63,844 ops/sec ±0.43% (94 runs sampled)
113-
lodash.isEqual x 6,243 ops/sec ±0.72% (90 runs sampled)
111+
react-fast-compare x 86,392 ops/sec ±0.70% (93 runs sampled)
112+
fast-deep-equal x 85,567 ops/sec ±0.95% (92 runs sampled)
113+
lodash.isEqual x 7,369 ops/sec ±1.78% (84 runs sampled)
114114
fastest: react-fast-compare,fast-deep-equal
115115
```
116116

assets/benchmarking.png

-20.1 KB
Loading

0 commit comments

Comments
 (0)