From 5c8b47deb3b20a438631632df7edf05257553936 Mon Sep 17 00:00:00 2001 From: carson Date: Wed, 17 Jun 2020 13:54:43 -0700 Subject: [PATCH] update perf to reasonable numbers --- test/core/perf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/core/perf.js b/test/core/perf.js index df967756..c0bfac58 100644 --- a/test/core/perf.js +++ b/test/core/perf.js @@ -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("
", 30) + stringRepeat("
\n", 3000) + stringRepeat("
", 30); + var str = stringRepeat("
", 30) + stringRepeat("
\n", 1000) + stringRepeat("
", 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(){