Closed Bug 1537893 Opened 6 years ago Closed 1 year ago

DOM Attributes (Prototype) addClassName and readAttribute are slow

Categories

(Core :: JavaScript Engine, defect, P3)

66 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: linuxcbon, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

run http://dromaeo.com/?jslib
in firefox and chrome

Actual results:

FIREFOX 66.0
Prototype - addClassName: 587.13runs/s ±30.79%
Prototype - readAttribute: 1171.82runs/s ±32.44%
GOOGLE CHROME 73.0.3683.75
Prototype - addClassName: 924.21runs/s ±21.37%
Prototype - readAttribute: 2177.06runs/s ±11.59%

Expected results:

addClassName and readAttribute should be 2x faster

Component: Untriaged → DOM: Core & HTML
Keywords: perf
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → x86_64
Component: DOM: Core & HTML → JavaScript Engine
Has STR: --- → yes
Priority: -- → P3
Blocks: sm-dom
Severity: normal → S3

Looking at our Dromaeo numbers on perfherder, I am just going to mark this as incomplete. We'd need to revisit this totally, but dromaeo isn't where our efforts are aimed these days.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.