You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB

  1. PEG.js Benchmark Suite
  2. ======================
  3. This is the PEG.js benchmark suite. It measures speed of the parsers generated
  4. by PEG.js on various inputs. Its main goal is to provide data for code generator
  5. optimizations.
  6. Running in Node.js
  7. ------------------
  8. All commands in the following steps need to be executed in PEG.js root directory
  9. (one level up from this one).
  10. 1. Install all PEG.js dependencies, including development ones:
  11. ```console
  12. $ npm install
  13. ```
  14. 2. Execute the benchmark suite:
  15. ```console
  16. $ gulp benchmark
  17. ```
  18. 3. Wait for results.
  19. Running in the Browser
  20. ----------------------
  21. All commands in the following steps need to be executed in PEG.js root directory
  22. (one level up from this one).
  23. 1. Make sure you have Node.js installed.
  24. 2. Install all PEG.js dependencies, including development ones:
  25. ```console
  26. $ npm install
  27. ```
  28. 3. Serve the benchmark suite using a web server:
  29. ```console
  30. $ benchmark/server
  31. ```
  32. 4. Point your browser to the [benchmark suite](http://localhost:8000/).
  33. 5. Click the **Run** button and wait for results.