Closed Bug 519877 Opened 15 years ago Closed 15 years ago

NJ merge: lirasm --stress mode

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: graydon, Assigned: n.nethercote)

References

Details

Or perhaps --self-benchmark. The idea here is to use some of the same machinery that'd be required to support --random mode in bug 519873, but have them run deterministically and at large volume, outputting some kinds of measurements of current NJ performance that could be compared to baseline numbers (code size and rdtsc-based cycle counting might be a good start).

In theory, just --random mode with a determinstic seed might suffice, assuming it's kept "legally executable", not meaningless jibberish. Though I imagine there's room for more interesting *targeted* stress tests too. Play around, be creative.

The idea with both bugs is really only to teach lirasm to test itself programmatically in "much more depth" than a bunch of individual unit tests would do. Unit tests are fixed and small. C++ code can generate more complex cases and run them rapidly.
--random with a large block size approximates this pretty well.  Eg. I can run 'lirasm --random 1000000' and it takes about 2 seconds.  It doesn't seed the random number generator so runs are repeatable.  (Perhaps I should allow the user to choose the seed.)
switching 503556 from blocking to a dependency.
No longer blocks: 503556
Depends on: 503556
I'm going to close this.  --random seems good enough.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.