Bug 20547

Summary: bitops-bitwise-and.js in SunSpider is misleading
Product: WebKit Reporter: Feng Qian <ian.eng.webkit>
Component: Tools / TestsAssignee: 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
Reported 2008-08-27 11:42:28 PDT
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
Maciej Stachowiak
Comment 1 2010-02-28 14:25:56 PST
We should fix this for SunSpider 2.0.
Note You need to log in before you can comment on or make changes to this bug.