Skip to content source code
Find file
Pull request Compare This branch is 28 commits behind mathiasbynens:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
robots.txt source code runs on a server with Apache or Lighttpd, MySQL and PHP installed.

How to run a local copy of jsPerf for testing/debugging

  1. Download the source code, as located within this repository.
  2. The code expects things to be hosted at / and not a subdirectory. You might want to create a new virtual host, e.g.
  3. Use _tmp/database.sql to create the jsPerf tables in a database of choice.
  4. Rename _inc/config.sample.php to _inc/config.php and enter your database credentials and other info.
  5. For the Browserscope integration to work, you’ll need a Browserscope API key. To get one, sign in at and then browse to the settings page.
  6. If you are using Apache, edit .htaccess (especially the first few lines) so it matches your current setup. If you are using Lighttpd, set up the virtual host using the sample in _inc/lighttpd.conf.
  7. If you plan on using the update script for Benchmark.js/Platform.js (_tmp/build.php), you’ll need to make some files writable.

    chmod 666 _js/benchmark.js _js/benchmark.src.js _js/platform.src.js\
    _js/ui.browserscope.src.js _js/ui.src.js _inc/version.txt


The source code for jsPerf is copyright © Mathias Bynens and dual-licensed under the MIT and GPL licenses.

You don’t have to do anything special to choose one license or the other and you don’t have to notify anyone which license you are using. You are free to re-use parts of this code in commercial projects as long as the copyright header (as mentioned in GPL-LICENSE.txt and MIT-LICENSE.txt) is left intact.

Something went wrong with that request. Please try again.