DOM processing should be fast ‣
TypeError: Cannot read properties of undefined (reading 'querySelector')
at Context.<anonymous> (manual-perf?grep=%5EManual+Perf+Tests+:61:34)
this.server.respondWith("GET", "/test", "Clicked!");
var str = stringRepeat("<div>", 30) + stringRepeat("<div><div><span><button hx-get='/test'> Test Get Button </button></span></div></div>\n", 500) + stringRepeat("</div>", 30);
var start = performance.now();
var stuff = make(str);
var end = performance.now();
var timeInMs = end - start;
var firstBtn = stuff.querySelector("button");
firstBtn.click();
this.server.respond();
firstBtn.innerHTML.should.equal("Clicked!");
chai.assert(timeInMs < 100, "Should take less than 100ms on most platforms, took: " + timeInMs + "ms");