From 2ada8ff474fa1b0c36da53a23ce8e0ead0b87d14 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Tue, 3 Feb 2026 22:24:45 +0100 Subject: [PATCH] test(utils): remove unnecessary timing test --- packages/utils/src/fastHash.test.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/utils/src/fastHash.test.ts b/packages/utils/src/fastHash.test.ts index bb6782c..c4f2633 100644 --- a/packages/utils/src/fastHash.test.ts +++ b/packages/utils/src/fastHash.test.ts @@ -21,24 +21,6 @@ test('fastHashArray doesnt product collisions', () => { expect(hash_a).not.toEqual(hash_b); }); -test('fastHashArray is fast(ish) < 20ms', () => { - const a = new Int32Array(10_000); - - const t0 = performance.now(); - fastHashArrayBuffer(a); - - const t1 = performance.now(); - - a[0] = 1; - - fastHashArrayBuffer(a); - - const t2 = performance.now(); - - expect(t1 - t0).toBeLessThan(20); - expect(t2 - t1).toBeLessThan(20); -}); - // test if the fastHashArray function is deterministic test('fastHashArray is deterministic', () => { const a = new Int32Array(1000);