Running Parsemark

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

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 -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 /path/to/baseline/js /path/to/parse-tests-dir/ -q > /tmp/baseline.json

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

python /tmp/current.json /tmp/baseline.json

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



 このページの貢献者: fscholz, nnethercote, cdleary
 最終更新者: fscholz,