From 3fed412997619df17916f31fe35040855ca45d8d Mon Sep 17 00:00:00 2001 From: Joachim Viide Date: Wed, 21 Sep 2022 01:23:58 +0300 Subject: [PATCH] fix: add a disposal phase for the cellx benchmark --- bench/layers.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bench/layers.mjs b/bench/layers.mjs index 1394e34..85a0ffd 100644 --- a/bench/layers.mjs +++ b/bench/layers.mjs @@ -176,6 +176,11 @@ function runCellx(layers, done) { const solution = [end.a.get(), end.b.get(), end.c.get(), end.d.get()] const endTime = performance.now() - startTime + start.a.dispose(); + start.b.dispose(); + start.c.dispose(); + start.d.dispose(); + done(isSolution(layers, solution) ? endTime : 'wrong') }