jsPerf.com source code
jsPerf.com runs on a server with Apache or Lighttpd, MySQL and PHP installed.
How to run a local copy of jsPerf for testing/debugging
- Download the source code, as located within this repository.
- The code expects things to be hosted at
/and not a subdirectory. You might want to create a new virtual host, e.g.
_tmp/database.sqlto create the jsPerf tables in a database of choice.
_inc/config.phpand enter your database credentials and other info.
- For the Browserscope integration to work, you’ll need a Browserscope API key. To get one, sign in at Browserscope.org and then browse to the settings page.
- 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
dev.jsperf.comvirtual host using the sample in
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
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
MIT-LICENSE.txt) is left