[Webkit-unassigned] [Bug 70107] Custom written CSS lexer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 12 23:32:22 PST 2011


--- Comment #18 from Zoltan Herczeg <zherczeg at webkit.org>  2011-12-12 23:32:21 PST ---
Created an attachment (id=118964)
 --> (https://bugs.webkit.org/attachment.cgi?id=118964&action=review)
CPU cycle measure

The attached patch works with Qt, gcc and x86, but it can be extended to other ports / CPUs if anyone needs it.

I measured the values on an Intel Xeon server, since the cycle counters of all cores are synchronized there. Therefore you don't need to worry about CPU affinity. On other machines you may experince "jumpings" as the kernel migrates the process, that is why I like the Xeon. I saw speedup between 2x - 2.5x on any pages, so you can use any page to measure it.

The reason of using cycle counters is based on that observation that the tokenizer called thousands of times, but a single run itself takes little time. Thus statistic based measurements are useless in our case.

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