File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Benchmarking
2
2
3
- This directory contains helpers for benchmarking (1) parsing, and (2) generating
4
- source maps .
3
+ This directory contains helpers for benchmarking the ` mozilla/source-map `
4
+ library .
5
5
6
6
Ensure that you have built the library, as these benchmarks rely on
7
7
` dist/source-map.js ` . See the main README.md for detais on building.
8
8
9
9
## Running Within a Browser
10
10
11
+ Run a local webserver from the root of the repository:
12
+
13
+ ```
14
+ $ cd source-map/
15
+ $ python -m SimpleHTTPServer
16
+ ```
17
+
18
+ Open
19
+ [ http://localhost:8000/bench/bench.html ] ( http://localhost:8000/bench/bench.html )
20
+ in your browser.
21
+
11
22
Open ` bench.html ` in a browser and click on the appropriate button.
12
23
13
24
## Running with a JS Shell
14
25
15
- Run ` $JS_SHELL bench-shell-bindings.js ` .
26
+ Run ` $JS_SHELL bench-shell-bindings.js ` , where ` $JS_SHELL ` is one of ` node ` or
27
+ SpiderMonkey's ` js ` .
You can’t perform that action at this time.
0 commit comments