Bug 176355 - Speedometer 2.0: Delete ToDo items in reversed order for Inferno suite
Summary: Speedometer 2.0: Delete ToDo items in reversed order for Inferno suite
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 172339
  Show dependency treegraph
 
Reported: 2017-09-05 01:41 PDT by Shiyu Zhang
Modified: 2017-09-08 00:54 PDT (History)
5 users (show)

See Also:


Attachments
Delete todo-items in reversed order for inferno suite (727 bytes, patch)
2017-09-05 01:41 PDT, Shiyu Zhang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shiyu Zhang 2017-09-05 01:41:14 PDT
Created attachment 319886 [details]
Delete todo-items in reversed order for inferno suite

Inferno case shows a strange behavior when deleting items. The deleteButtons array will be dynamically updated once one todo-item is deleted. For example, after deleteButtons[i].click() executed,  deleteButtons[i+1] was copied to deleteButtons[i], deleteButtons[i+2] was copied to deleteButtons[i+1] ...

This behavior caused the bug of "don't delete all ToDo items" in https://bugs.webkit.org/show_bug.cgi?id=172341. I tried to delete items in reversed order for Inferno case as the patch did. All the todo-items can be deleted and the results on my PC (Ubuntu Chrome R60) showed 4x score improvement for Inferno case.  I think it’s unusual to dynamically update deleteButtons array in the Inferno use case. Maybe we can walk around this by deleting items in reversed order for Inferno case.
Comment 1 Ryosuke Niwa 2017-09-05 20:18:53 PDT
No, we don't want to make each test case faster like this. The whole point of this benchmark is to have browser engines optimize DOM API, not measure what they're already fast at.