haikuwebkit/PerformanceTests/resources/force-gc.html

7 lines
175 B
HTML
Raw Permalink Normal View History

Force GC between PageLoad tests. https://bugs.webkit.org/show_bug.cgi?id=98203 Reviewed by Ryosuke Niwa. Previously, our PageLoad PerfTests had multi-modal distributions, typically with a small cluster at 1-2x the median. This turned out to be caused by not garbage collecting between tests! This patch adds a new file, force-gc.html, and loads this file between PageLoad tests to force a GC. I manually verified that this cleans up our perf test outliers. PerformanceTests: * resources/force-gc.html: Added. Tools: * Scripts/webkitpy/performance_tests/perftest.py: (PageLoadingPerfTest.__init__): (PageLoadingPerfTest): (PageLoadingPerfTest.run_single): This function now loads two pages: one to force a gc and then the test to run. * Scripts/webkitpy/performance_tests/perftest_unittest.py: Modified several existing tests to show that the force-gc file is loaded. (MockPort): (MockPort.__init__): (MockPort.perf_tests_dir): (TestPageLoadingPerfTest.MockDriver.__init__): (TestPageLoadingPerfTest.MockDriver.run_test): (TestPageLoadingPerfTest.test_run): (TestPageLoadingPerfTest.test_run_with_bad_output): (TestReplayPerfTest.ReplayTestPort): (TestReplayPerfTest.ReplayTestPort.__init__): (TestReplayPerfTest.test_run_single.run_test): (TestReplayPerfTest.test_run_single): (TestReplayPerfTest.test_run_single_fails_when_output_has_error): (TestPerfTestFactory.test_regular_test): (TestPerfTestFactory.test_inspector_test): (TestPerfTestFactory.test_page_loading_test): Canonical link: https://commits.webkit.org/116363@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@130366 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-10-04 06:29:45 +00:00
<!DOCTYPE HTML>
<!-- This page forces a GC in DRT for https://bugs.webkit.org/show_bug.cgi?id=98203. -->
<html>
<body onload="window.GCController.collect();">
</body>
</html>