update perf to reasonable numbers

This commit is contained in:
carson 2020-06-17 13:54:43 -07:00
parent 05229609ac
commit 5c8b47deb3

View File

@ -34,7 +34,7 @@ describe("Core htmx perf Tests", function() {
// create an entry with a large content string (256k) and see how fast we can write and read it
// to local storage as a single entry
var str = stringRepeat("<div>", 30) + stringRepeat("<div><div><span><button hx-get='/test'> Test Get Button </button></span></div></div>\n", 3000) + stringRepeat("</div>", 30);
var str = stringRepeat("<div>", 30) + stringRepeat("<div><div><span><button hx-get='/test'> Test Get Button </button></span></div></div>\n", 1000) + stringRepeat("</div>", 30);
console.log(str);
var start = performance.now();
var stuff = make(str);
@ -47,7 +47,7 @@ describe("Core htmx perf Tests", function() {
this.server.respond();
firstBtn.innerHTML.should.equal("Clicked!");
chai.assert(timeInMs < 10, "Should take less than 100ms on most platforms, took: " + timeInMs + "ms");
chai.assert(timeInMs < 100, "Should take less than 100ms on most platforms, took: " + timeInMs + "ms");
})
it("history implementation should be fast", function(){