Bug Tracker

Opened 14 years ago

Closed 13 years ago

#5088 closed bug (fixed)

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.

Change History (1)

comment:1 Changed 13 years ago by john

Resolution: fixed
Status: newclosed

This has since been resolved.

Note: See TracTickets for help on using tickets.