Bug 20547
| Summary: | bitops-bitwise-and.js in SunSpider is misleading | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Feng Qian <ian.eng.webkit> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | mjs, seth.gaurav, zwarich |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.5 | ||
Feng Qian
I run the test, most time were spent on accessing a global variable (read and write): bitwiseAndValue.
If we move the code into a function and declare bitwiseAndValue be a local, the execution is reduced from 72ms to 10ms.
To make the benchmark name accurate, either it should be renamed to 'access' category as Maciej suggested, or move the code into a function and declare the varaible as a local.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Maciej Stachowiak
We should fix this for SunSpider 2.0.