Skip to content

Commit 86fb3ea

Browse files
committed
benchmark: Cleanup README.md. [jddalton]
1 parent dea8819 commit 86fb3ea

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ In a browser or Adobe AIR:
1414

1515
<script src="benchmark.js"></script>
1616

17-
Optionally, add the `nanoTime` Java applet to the `<body>`:
17+
Optionally, expose Java's nanosecond timer by adding the "nano" applet to the `<body>`:
1818

1919
<applet code="nano" archive="nano.jar"></applet>
2020

21-
Or enable Chrome's microsecond timer by using the flag:
21+
Or enable Chrome's microsecond timer by using the [command line switch](http://peter.sh/experiments/chromium-command-line-switches/#enable-benchmarking):
2222

23-
[--enable-benchmarking flag](http://peter.sh/experiments/chromium-command-line-switches/#enable-benchmarking)
23+
--enable-benchmarking
2424

2525
Via [npm](http://npmjs.org/):
2626

@@ -45,7 +45,7 @@ In [Rhino](http://www.mozilla.org/rhino/):
4545
Usage example:
4646

4747
var suite = new Benchmark.Suite;
48-
48+
4949
// add tests
5050
suite.add('RegExp#test', function() {
5151
/o/.test('Hello World!');
@@ -62,7 +62,7 @@ Usage example:
6262
})
6363
// run async
6464
.run(true);
65-
65+
6666
// logs:
6767
// > RegExp#test × 4,161,532 ±0.99% (59 cycles)
6868
// > String#indexOf × 6,139,623 ±1.00% (131 cycles)

benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@
346346
} catch(e) { }
347347

348348
// detect Chrome's microsecond timer:
349-
// enable benchmarking via the --enable-benchmarking flag
350-
// in at least Chrome 7 to use chrome.Interval
349+
// enable benchmarking via the --enable-benchmarking command
350+
// line switch in at least Chrome 7 to use chrome.Interval
351351
try {
352352
if (timerNS = new (window.chrome || window.chromium).Interval) {
353353
timers.push({ 'ns': timerNS, 'res': getRes('us'), 'unit': 'us' });

vendor/qunit

Submodule qunit updated from 3adbe65 to e0893e0

0 commit comments

Comments
 (0)