Skip to main content

Bug Tracker

Side navigation

#5088 closed bug (fixed)

Opened August 20, 2009 08:21PM UTC

Closed February 05, 2010 09:40PM UTC

QUnit performance tuning

Reported by: joern Owned by: joern
Priority: major Milestone: 1.4
Component: qunit Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

The call to reset before each test can take around 30ms (for the validation plugin testsuite, probably more for bigger test fixtures). The current code uses this:

$("#main").html( config.fixture );

Using only DOM methods, it can be considerably faster:

document.getElementById("main").innerHTML = config.fixture;

This causes a few dozen tests in the jQuery core testsuite to fail. Need to figure out why they are failing.

Also there are probably other areas for performance tuning. Needs some careful measuring.

Attachments (0)
Change History (1)

Changed February 05, 2010 09:40PM UTC by john comment:1

resolution: → fixed
status: newclosed

This has since been resolved.