Skip to content

Commit

Permalink
Merge pull request #28 from jviide/cellx-disposal
Browse files Browse the repository at this point in the history
fix: add a disposal phase for the cellx benchmark
  • Loading branch information
elbywan committed Sep 21, 2022
2 parents d94b563 + 3fed412 commit 1e6a867
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bench/layers.mjs
Expand Up @@ -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')
}

Expand Down

0 comments on commit 1e6a867

Please sign in to comment.