Home

Awesome

ember-macro-bench

A tool for measuring changes in Ember to applications.

This uses chrome-tracing and har-remix to measure the effects of small changes to Ember on applications.

This is also a demonstration of using these tools to measure applications.

Setup

Prerequisites

These instructions assume Mac and using homebrew.

Install R

brew tap homebrew/science
brew install r

Run R

R

Then install R packages:

install.packages("jsonlite")
install.packages("R6")
install.packages("ggplot2")
q()

Install yarn

brew install yarn

Install

git clone git@github.com:krisselden/ember-macro-benchmark.git
cd ember-macro-benchmark
yarn

Run the Server

Edit the config.json

Caveat: the templates are in the recorded app, you can only test with an Ember with compatible template wire-format as the recording unless you add a dist to the server

yarn run serve

Run the Benchmark

While the app is being served, run:

yarn run bench

Generate the Report

To generate the report run:

yarn run plot

Which will generate a PDF in the results folder with the reports from Chrome Tracing. It contains several graphs and plots for. Here are a few resources to help you read them:

If you'd like to see a smaller summary in your CLI you can run:

yarn run report

Which will give you an abbreviated report.