Skip to content

lazd/karma-benchmark-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karma-benchmark-example

A karma-benchmark example

What is this?

This is a simple example that shows how to use karma-benchmark with the karma-benchmark-reporter and karma-junit-reporter reporters.

It pits native Array methods against a home-made utility library.

Running the example

First, install dependencies:

npm install

Run all browsers

This will run benchmarks in Chrome and Firefox:

grunt bench

Run a single browser

You can pass chrome or firefox.

grunt bench:chrome

Run directly from Karma

Grunt is not required. You can simply run Karma directly:

karma start

CI run with JUnit report

This will run benchmarks in PhantomJS and write test results to results/junit-benchmark-results.xml:

grunt bench:ci

About

A karma-benchmark example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published