Skip to content

Commit

Permalink
fix: add a disposal phase for the cellx benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
jviide committed Sep 20, 2022
1 parent d94b563 commit 3fed412
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bench/layers.mjs
Original file line number Diff line number Diff line change
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 3fed412

Please sign in to comment.