/relay-vs-apollo-size

A size comparison of relay and apollo-client

Primary LanguageShell

This repo is a demonstration of the current sizes of an app with relay-modern vs apollo-client.

A react + react-dom base is used as a comparison. Each library is then added and the resulting bundle sizes are compared.

Run sh sizes.sh to generate:

React 16

React base size is: 34KiB
Marginal size of relay-modern after min and gzip: 34KiB
Marginal size of apollo after min and gzip: 33KiB

React 15 (old results)

React base size is: 43KiB
Marginal size of relay-classic after min and gzip: 78KiB
Marginal size of relay-modern after min and gzip: 32KiB
Marginal size of apollo after min and gzip: 25KiB