Skip to content

Commit 0ce3e70

Browse files
committed
bench: update README instructions
1 parent a77ecfa commit 0ce3e70

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

bench/README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
# Benchmarking
22

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.
55

66
Ensure that you have built the library, as these benchmarks rely on
77
`dist/source-map.js`. See the main README.md for detais on building.
88

99
## Running Within a Browser
1010

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+
1122
Open `bench.html` in a browser and click on the appropriate button.
1223

1324
## Running with a JS Shell
1425

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`.

0 commit comments

Comments
 (0)