[PATCH 2/2] jscript: Run some SunSpider benchmarks in interactive mode.

Jacek Caban jacek at codeweavers.com
Tue Apr 23 08:03:35 CDT 2013


Although we may not need this for performence measuring, those
benchmarks are exactly the tests we need. It's tricky to write a test
that would verify all corner cases of previous patch, esp. because the
behaviour depends on some constant tuning. Instead, this runs enough
string operations to run those cases. This also tests about any part of
the engine, esp. interpreter and some builtin functions. That's why I'd
like to integrate more such tests in the future.

I'm not sure how to handle licensing stuff. The SunSpider benchmark
lives in WebKit repo, which generally uses BSD or LGPL. This, however,
contains content imported from other sources, like base64 tests from
Mozilla. Others import SunSpider files unchanged, so I'm not sure if we
need to add any license header or something like that.

---
 dlls/jscript/tests/rsrc.rc                         |    9 +
 dlls/jscript/tests/run.c                           |   71 +-
 dlls/jscript/tests/sunspider-regexp-dna.js         | 1712
++++++++++++++++++++
 dlls/jscript/tests/sunspider-string-base64.js      |  135 ++
 .../tests/sunspider-string-validate-input.js       |   89 +
 5 files changed, 2014 insertions(+), 2 deletions(-)
 create mode 100644 dlls/jscript/tests/sunspider-regexp-dna.js
 create mode 100644 dlls/jscript/tests/sunspider-string-base64.js
 create mode 100644 dlls/jscript/tests/sunspider-string-validate-input.js


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-jscript-Run-some-SunSpider-benchmarks-in-interactive-.diff
Type: text/x-patch
Size: 121320 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130423/64b49d0c/attachment-0001.bin>


More information about the wine-patches mailing list