• Stars
    star
    140
  • Rank 261,473 (Top 6 %)
  • Language
    JavaScript
  • Created over 11 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A suite of tests for EmberJS to help with performance

Ember Performance Suite

The Ember Performance Suite is designed to help profile and diagnose the performance of the Ember.js framework. The general strategy is:

  • Browsers have a large variance in performance characteristics, so run each test in a new document, storing the results in localStorage.

  • Use benchmark.js for micro benchmarks and a different strategy for macro benchmarks.

  • Record Baseline performance so that we can compare Ember to the baseline performance of the platform it's run on.

bench.json

  • name: humanized name
  • description: TL;DR of the benchmark, sometimes notes can be handy to display
  • keywords: these are meant to label/categorize tests, allowing tooling and users to quickly group and differentiate
  • disabled: allows for a test to be entirely disabled

To run in development mode

  1. npm install
  2. npm install -g bower
  3. bower install
  4. npm run server
  5. bin/launch-chrome http://localhost:4200

To build for production mode

  1. npm install
  2. npm install -g bower
  3. npm run prod-server

And open a browser to http://localhost:4200

Adding a new Ember Version

To add a new ember version, you'll need to build a production bundle. Navigate to an empty scratch directory outside of this project, install ember-cli, then run:

VERSION=4.0.1
ember new myapp --yarn --skip-git --skip-bower --no-welcome
cd myapp
yarn add -D ember-source@$VERSION

Edit ember-cli-build.js to disable minification and sourcemaps:

let app = new EmberApp(defaults, {
  'ember-cli-terser': { enabled: false },
  sourcemaps: { enabled: false },
});
yarn build --target production
mv dist/assets/vendor-*.js ../../ember-performance/ember/ember-$VERSION.prod.js
mv node_modules/ember-source/dist/ember-template-compiler.js ../../ember-performance/ember/ember-$VERSION.template-compiler.js

License

MIT

More Repositories

1

tis-100

An emulator for the TIS-100 CPU
C
411
star
2

ember-cloaking

Support for not rendering offscreen views in an Ember app for performance
JavaScript
294
star
3

ember-renderspeed

A script for instrumenting rendering speed in an Ember.Js Application
JavaScript
172
star
4

agi-upscale

agi pic viewer
Ruby
152
star
5

emberreddit-old

A demonstration of Ember.js without using Ember data
JavaScript
81
star
6

kawaii

Kawaii is like a web frontend to script/console for your Rails apps, with nicely formatted output
JavaScript
74
star
7

rubycpu

An assembler compiler and bytecode virtual machine implemented in ruby for a made up CPU.
Ruby
64
star
8

emberreddit

A demonstration of how to use Ember without Ember Data.
JavaScript
60
star
9

discourse-droplet

A simple wizard to deploy Discourse on Digital Ocean using Docker
Ruby
52
star
10

emberpress

A clone of the LetterPress word game in EmberJS
JavaScript
45
star
11

ember-tv

Sample project for using ember to make a TV friendly interface
JavaScript
25
star
12

blog

Source code for my blog at http://eviltrout.com
HTML
23
star
13

nightmares

A companion repo for a YouTube video about remaking my childhood game
C
16
star
14

particles

A simple script that shows how you could create a particle system in Gosu using Ruby.
Ruby
10
star
15

fake5150

A port of sarien to a Godot texture
C
10
star
16

discourse-no-nazis

Block users from Discourse who participated in a neo-nazi forum
Ruby
8
star
17

overload

Information Overload
ActionScript
7
star
18

brigade

A subreddit crawler to determine downvote brigading
Ruby
7
star
19

embed-topics

Examples for Embedding Discourse Topics
Ruby
6
star
20

bugs

A simple bug tracking ember application for use in a debugger tutorial
JavaScript
5
star
21

adventofcode

Solutions to Advent of Code
Ruby
5
star
22

login

An example ember application to demonstrate Pretender
JavaScript
5
star
23

trout_emoji

Adds an evil trout emoji to a discourse install
Ruby
3
star
24

nntp_indexer

A celluloid based nntp indexer written in ruby
Ruby
3
star
25

benchmark-ember-rendering

A benchmark of Ember.js's rendering
JavaScript
3
star
26

beards-of-magic

Beards of Magic TOJAM 7
JavaScript
3
star
27

discourse-exolve-crossword

A Discourse Theme Component to show crossword puzzles
JavaScript
2
star
28

purple-tentacle

A sample plugin to show how to use handlebars templates on a custom admin route
JavaScript
2
star
29

discourse-gradle-issue

Links a topic to a gradle issue
JavaScript
1
star
30

ast

Talk about JS Performance and ASTs
HTML
1
star
31

discourse-plugin-test

A test plugin for Discourse.
1
star
32

benchmark-metamorph-css

A benchmark of the effects of metamorphs on the CSS performance
JavaScript
1
star
33

test

test
1
star
34

pixel

A pixel editor in ember.js
JavaScript
1
star
35

weather-component

Little test project for Integration tests for Ember components
JavaScript
1
star