[Webkit-unassigned] [Bug 43256] New: Avoid timing IO in SunSpider
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jul 30 09:24:14 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=43256
Summary: Avoid timing IO in SunSpider
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Tools / Tests
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pbiggar at mozilla.com
In the standalone shell version of Sunspider, the timer is started, then load() is called on the script, and finally the timer is stopped. load() reads the file from disk, and the IO effect of this leads to a 35% increase in variance (see https://bugzilla.mozilla.org/show_bug.cgi?id=580532#c24).
The simplest solution is to read the file into a string, then start the timer, eval the string, and stop the timer. I'm told most JS engines have a read() builtin function for this (though on Firefox it is called snarf() for some reason).
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list