5a833bd982
- Moved benchmark to test/benchmark - Moved tests to test/spec - Removed individual servers - Implemented single test server - Moved server assets to test/server - Updated Gulpfile.js - Moved tools/impact to test/impact This commit move's nearly all code related to testing the PEG.js module into the test directory, and also ensures they run as they did before the move.
41 lines
1.1 KiB
HTML
41 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>PEG.js Benchmark Suite</title>
|
|
<link rel="stylesheet" href="benchmark.css">
|
|
</head>
|
|
<body>
|
|
<h1>PEG.js Benchmark Suite</h1>
|
|
|
|
<div id="options">
|
|
<label for="run-count">Run each test</label>
|
|
<input type="text" id="run-count" value="10"> times
|
|
<input type="checkbox" id="cache">
|
|
<label for="cache">Use results cache</label>
|
|
<label for="optimize">Optimize:</label>
|
|
<select id="optimize">
|
|
<option value="speed">Speed</option>
|
|
<option value="size">Size</option>
|
|
</select>
|
|
<input type="button" id="run" value="Run">
|
|
</div>
|
|
|
|
<table id="results-table">
|
|
<tr class="columns">
|
|
<th>Test</th>
|
|
<th>Input Size</th>
|
|
<th>Average Parse Time</th>
|
|
<th>Average Parse Speed</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="no-results" colspan="4">No results available yet.</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<script src="vendor/jquery/jquery.js"></script>
|
|
<script src="vendor/jquery.scrollto/jquery.scrollTo.js"></script>
|
|
<script src="benchmark/bundle.js"></script>
|
|
</body>
|
|
</html>
|