Skip to content

Commit

Permalink
Benchmarking 2.0.0 (#23)
Browse files Browse the repository at this point in the history
* Update benchmarking dependencies
* Update benchmarking data in README.md
* Add updated benchmarking chart
* Fix broken benchmarking link.
  • Loading branch information
samwhale committed Jun 4, 2018
1 parent f5d587d commit 3554b13
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 20 deletions.
26 changes: 13 additions & 13 deletions README.md
Expand Up @@ -11,9 +11,9 @@ extra handling for React.
[![size_minzip][size_minzip]][size_site]
[![size_min][size_min]][size_site]

<img src="https://i.imgur.com/KLUWQla.png" alt="chart" width="550"/>
![benchmark chart](assets/benchmarking.png "benchmarking chart")

(Check out the [benchmarking details](#benchmarking).)
(Check out the [benchmarking details](#benchmarking-this-library).)

## Install

Expand Down Expand Up @@ -83,12 +83,12 @@ simply because there are more tests in each operation.
### Generic Data

```
react-fast-compare x 161,872 ops/sec ±1.18% (82 runs sampled)
fast-deep-equal x 159,889 ops/sec ±1.62% (85 runs sampled)
lodash.isEqual x 30,750 ops/sec ±2.02% (86 runs sampled)
nano-equal x 35,608 ops/sec ±1.55% (86 runs sampled)
shallow-equal-fuzzy x 94,141 ops/sec ±1.80% (89 runs sampled)
fastest: react-fast-compare,fast-deep-equal
react-fast-compare x 207,503 ops/sec ±0.54% (92 runs sampled)
fast-deep-equal x 195,006 ops/sec ±0.70% (91 runs sampled)
lodash.isEqual x 43,778 ops/sec ±0.55% (91 runs sampled)
nano-equal x 198,036 ops/sec ±0.37% (95 runs sampled)
shallow-equal-fuzzy x 173,023 ops/sec ±0.59% (95 runs sampled)
fastest: react-fast-compare
```

`react-fast-compare` and `fast-deep-equal` should be the same speed for these
Expand All @@ -98,11 +98,11 @@ tests; any difference is just noise. `react-fast-compare` won't be faster than
### React and Generic Data

```
react-fast-compare x 150,667 ops/sec ±1.86% (83 runs sampled)
fast-deep-equal x 510 ops/sec ±1.67% (77 runs sampled)
lodash.isEqual x 25,760 ops/sec ±1.63% (83 runs sampled)
nano-equal x 629 ops/sec ±2.43% (80 runs sampled)
shallow-equal-fuzzy x 454 ops/sec ±1.42% (79 runs sampled)
react-fast-compare x 187,628 ops/sec ±0.58% (93 runs sampled)
fast-deep-equal x 477 ops/sec ±0.55% (91 runs sampled)
lodash.isEqual x 35,100 ops/sec ±0.16% (95 runs sampled)
nano-equal x 468 ops/sec ±0.53% (94 runs sampled)
shallow-equal-fuzzy x 684 ops/sec ±0.43% (92 runs sampled)
fastest: react-fast-compare
```

Expand Down
Binary file added assets/benchmarking.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -42,7 +42,7 @@
"core-js": "^2.5.5",
"coveralls": "^2.13.1",
"eslint": "^4.0.0",
"fast-deep-equal": "^1.1.0",
"fast-deep-equal": "2.0.1",
"karma": "^2.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma-firefox-launcher": "^1.1.0",
Expand All @@ -51,9 +51,9 @@
"karma-mocha-reporter": "^2.2.5",
"karma-safari-launcher": "^1.0.0",
"karma-webpack": "^3.0.0",
"lodash": "^4.17.4",
"lodash": "^4.17.10",
"mocha": "^3.4.2",
"nano-equal": "^1.0.1",
"nano-equal": "^2.0.2",
"nyc": "^11.0.2",
"react": "^16.3.1",
"react-test-renderer": "^16.3.1",
Expand Down
16 changes: 12 additions & 4 deletions yarn.lock
Expand Up @@ -2195,7 +2195,11 @@ extsprintf@^1.2.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f"

fast-deep-equal@^1.0.0, fast-deep-equal@^1.1.0:
fast-deep-equal@2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49"

fast-deep-equal@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614"

Expand Down Expand Up @@ -3580,6 +3584,10 @@ lodash@^4.0.0, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.4, lodash@^4.3.0, lo
version "4.17.5"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"

lodash@^4.17.10:
version "4.17.10"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"

log-driver@1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056"
Expand Down Expand Up @@ -3913,9 +3921,9 @@ nan@^2.3.0:
version "2.10.0"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f"

nano-equal@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/nano-equal/-/nano-equal-1.0.1.tgz#16cacaac1b9403ad09060ac5551b605525cd2bd8"
nano-equal@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/nano-equal/-/nano-equal-2.0.2.tgz#e92c16f5274a4781e6ab01119832b1a3f95f9d18"

nanomatch@^1.2.9:
version "1.2.9"
Expand Down

0 comments on commit 3554b13

Please sign in to comment.