Reorganize and add to benchmarks

Rearrange the benchmark code so that each implementation is
self-contained. Adds the SierpinskiTriangle case that 'emotion'
introduced in their fork of the 'react-native-web' benchmarks. And make
it possible to run benchmarks on a per-library basis.
This commit is contained in:
Nicolas Gallagher
2017-12-27 19:31:15 +00:00
parent f6d1caab9d
commit 86263a2fa0
80 changed files with 847 additions and 227 deletions

View File

@@ -1,10 +1,10 @@
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const path = require('path');
const webpack = require('webpack');
module.exports = {
context: __dirname,
entry: './index',
entry: ['babel-polyfill', './src/index'],
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'performance.bundle.js'
@@ -34,10 +34,10 @@ module.exports = {
]
},
plugins: [
new BundleAnalyzerPlugin({
analyzerMode: 'static',
openAnalyzer: false
}),
// new BundleAnalyzerPlugin({
// analyzerMode: 'static',
// openAnalyzer: false
// }),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),