You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.3 KiB
Markdown
46 lines
1.3 KiB
Markdown
15 years ago
|
PEG.js Benchmark Suite
|
||
|
======================
|
||
|
|
||
|
This is the PEG.js benchmark suite. It measures speed of the parsers generated
|
||
|
by PEG.js on various inputs. Its main goal is to provide data for code generator
|
||
|
optimization.
|
||
|
|
||
14 years ago
|
Running in a browser
|
||
|
--------------------
|
||
15 years ago
|
|
||
12 years ago
|
1. Make sure you have Node.js and all the development dependencies specified
|
||
11 years ago
|
in `package.json` installed.
|
||
15 years ago
|
|
||
12 years ago
|
2. Run the following command in the PEG.js root directory (one level up from
|
||
|
this one):
|
||
15 years ago
|
|
||
11 years ago
|
make browser
|
||
12 years ago
|
|
||
|
3. Start a web server and make it serve the PEG.js root directory.
|
||
|
|
||
11 years ago
|
4. Point your browser to an URL corresponding to the `index.html` file.
|
||
12 years ago
|
|
||
|
5. Click the "Run" button and wait for the table to fill.
|
||
15 years ago
|
|
||
12 years ago
|
If you have Python installed, you can fulfill steps 3 and 4 by running the
|
||
|
following command in the PEG.js root directory
|
||
15 years ago
|
|
||
11 years ago
|
python -m SimpleHTTPServer
|
||
15 years ago
|
|
||
11 years ago
|
and load
|
||
|
[http://localhost:8000/benchmark/index.html](http://localhost:8000/benchmark/index.html)
|
||
|
in your browser.
|
||
14 years ago
|
|
||
|
Running from a command-line
|
||
|
---------------------------
|
||
|
|
||
12 years ago
|
1. Make sure you have Node.js and all the development dependencies specified
|
||
11 years ago
|
in `package.json` installed.
|
||
14 years ago
|
|
||
12 years ago
|
2. Run the following command in the PEG.js root directory (one level up from
|
||
|
this one):
|
||
14 years ago
|
|
||
11 years ago
|
make benchmark
|
||
14 years ago
|
|
||
|
3. Wait for the table to fill.
|