mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 13:31:06 +00:00
update perf to reasonable numbers
This commit is contained in:
parent
05229609ac
commit
5c8b47deb3
@ -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(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user