jsperf

0.2.1 • Public • Published

JSPerf for NodeJS

Version Build Status Downloads Dependencies

This command line utility helps you run performance tests from http://jsperf.com locally with NodeJS.

Installation

npm install jsperf -g

Warning

The tool runs the code fetched from jsperf.com w/o any processing. This can be very dangerous. Review the tests before running or use disposable sandboxes

This also means that browser-dependant tests will not run (at least with the current version). Fetch only pure JS tests.

Usage

Create a folder for your local tests:

mkdir my-jsperf-tests

Initialize your tests:

cd my-jsperf-tests
jsperf init

Get a test:

jsperf get <test-slug> <revision>

For instance:

jsperf get replace-vs-split-join-vs-replaceall 67

Preview a test:

jsperf preview replace-vs-split-join-vs-replaceall 67

Run a test:

jsperf run replace-vs-split-join-vs-replaceall 67

Results:

jsperf results

License

LICENSE

Package Sidebar

Install

npm i jsperf

Weekly Downloads

1

Version

0.2.1

License

MIT

Last publish

Collaborators

  • orkon