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.dev.jsperf.com
. - Use
_tmp/database.sql
to create the jsPerf tables in a database of choice. - Rename
_inc/config.sample.php
toconfig.php
and enter your database credentials and other info. - 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 thedev.jsperf.com
virtual host using the sample in_inc/lighttpd.conf
.
License
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.