GitXplorerGitXplorer
b

react-native-css-in-js-benchmarks

public
47 stars
11 forks
2 issues

Commits

List of commits on branch master.
Unverified
3eb5709c10ba4d0ac6fbcc5eac50c56d04e62de3

[Benchmark] Update results

bbrunolemos committed 6 years ago
Unverified
3e8d0ce1d7274b746df6ae7207ba629ec5d66a2c

[Benchmark] Update results

bbrunolemos committed 6 years ago
Unverified
1cafb417cd4379e49d22b87399380791fb858d37

[Readme] Add missing steps for detox

bbrunolemos committed 6 years ago
Unverified
8c3a9bea7538ad09fc5a852dc4525b9f2da13e37

Regenerated package-lock.json

bbrunolemos committed 6 years ago
Unverified
60936b346b98e989621469ac7254211dfdcd3437

Upgrade all dependencies

bbrunolemos committed 6 years ago
Verified
d3f123445c8d8747543ab1f99fe11db2e488eead

[Readme] Add How To

bbrunolemos committed 7 years ago

README

The README file for this repository.

CSS in JS Benchmarks

for React Native

Results

See RESULTS.md for the benchmark results.

Technique

  • Big table with random data and dynamic background color opacity
  • Multiple implementations for each lib with small variations, e.g. using inline styles or not
  • Multiple rerenders are executed per test and the result is their average render time

React Native running CSS in JS benchmarks on iOS simulator

Libs

Know any other? Please open an issue or, preferrably, a pull request :)

Inspiration

The idea and some code pieces are heavily inspired by A-gambit/CSS-IN-JS-Benchmarks, which benchmarks were made for React Web.

How to run

  • Run git clone git@github.com:brunolemos/react-native-css-in-js-benchmarks.git
  • Run yarn or npm install

Manually

  • Run react-native run-ios
  • Use the app as usual

Automatically

  • Run brew tap wix/brew
  • Run brew install applesimutils
  • Start the iPhone X Simulator
  • Run npm run test:e2e:build
  • Run npm run test:e2e

Detox will run all benchmarks and show the results at the end.

Author

Bruno Lemos (follow @brunolemos on twitter)