Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Running Parsemark

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

Parsemark is a command-line testing utility for measuring parse/emit performance of the SpiderMonkey front-end. The intent is to run a dozen or so large-payload JS sites globbed up from across the web. Yes, it includes GMail.

Here's how you get your mitts on it. The test files are not checked into the source tree because they're non-Mozilla JS code.

  1. Download the suite of parse tests from Bug 548621 and decompress them.
  2. Within js/src/tests, run python parsemark.py -h to see help documentation.

Generally you'll want to capture JSON results for your baseline and compare them to the results for the "current" version of your shell. A typical run can be done like so:

cd js/src/tests

python parsemark.py /path/to/baseline/js /path/to/parse-tests-dir/ -q > /tmp/baseline.json

python parsemark.py /path/to/current/js /path/to/parse-tests-dir/ -q > /tmp/current.json

python compare_bench.py /tmp/current.json /tmp/baseline.json

NOTE:  Unfortunately the comparisons done are very noisy and not reliable!

 

文档标签和贡献者

标签: 
 此页面的贡献者: fscholz, nnethercote, cdleary
 最后编辑者: fscholz,