Ignore:
Timestamp:
05/14/12 14:19:51 (2 years ago)
Author:
rniwa@webkit.org
Message:

Convert CSS and Parser tests to runs/s tests
https://bugs.webkit.org/show_bug.cgi?id=86399

Reviewed by Ojan Vafai.

Use runPerSecond instead of run to measure results in function calls per second (run/s) instead of time (ms).
This allows us to continue measuring performance reliably even when WebKit's performance improves and results
become too small for Date.now()'s precision (around 15 ms).

It should also reduce perf. bots cycle time for slower tests because we limit the number of function calls by time.

  • CSS/CSSPropertySetterGetter.html:
  • CSS/CSSPropertyUpdateValue.html:
  • Parser/css-parser-yui.html:
  • Parser/simple-url.html:
  • Parser/tiny-innerHTML.html:
  • Parser/url-parser.html:
  • Parser/xml-parser.html:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/CSS/CSSPropertyUpdateValue.html

    r112253 r117001  
    7373}; 
    7474// The first run will just add the properties but it's fine as the first run of the benchmark is always ignored. 
    75 PerfTestRunner.run(function() { 
     75PerfTestRunner.runPerSecond({run:function() { 
    7676    for (key in properties) 
    7777        div.style[key] = properties[key]; 
    78 }, 10000); 
     78}}); 
    7979</script> 
    8080</html> 
Note: See TracChangeset for help on using the changeset viewer.