[JSC] Allow JSBench to use precise time
Created attachment 279736 [details] Patch
Comment on attachment 279736 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=279736&action=review > Tools/Scripts/run-jsc-benchmarks:1034 > + doublePuts($stderr,file,"function currentTimeInMS(msg)") Perhaps I missed it, but I don't see an implementation of currentTimeInMS outside the run-jsc-benchmarks script. We'd like these tests to support running in DRT or Safari as well. Can you add an implementation of currentTimeInMS to harness.html? performance.now() is probably the best thing to use in the browser.
Comment on attachment 279736 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=279736&action=review >> Tools/Scripts/run-jsc-benchmarks:1034 >> + doublePuts($stderr,file,"function currentTimeInMS(msg)") > > Perhaps I missed it, but I don't see an implementation of currentTimeInMS outside the run-jsc-benchmarks script. We'd like these tests to support running in DRT or Safari as well. Can you add an implementation of currentTimeInMS to harness.html? performance.now() is probably the best thing to use in the browser. Oh, thanks! I thought these tests are only used from run-jsc-benchmark. I've added currentTimeInMS implementaiton in JSBench/harness.js and each html files. HTML files implementation is required when it is not executed under the harness. If it is executed in JSBench's harness, harness.js's implementation is required. And run-jsc-benchmark's implementation is required when it is executed with run-jsc-benchmark.
Created attachment 279875 [details] Patch
Comment on attachment 279875 [details] Patch r=me
Committed r201442: <http://trac.webkit.org/changeset/201442>