summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/Geometry.test.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/Geometry.test.js b/modules/Geometry.test.js
index bfac85f..925a53d 100644
--- a/modules/Geometry.test.js
+++ b/modules/Geometry.test.js
@@ -1,7 +1,8 @@
import { test, assert } from './test-assert.js';
-
import { AABB, QTNode, QuadTree } from './Geometry.js';
+const RUN_BENCHMARKS = false;
+
test('AABB correctly contains/excludes points', () => {
const box = new AABB(0, 0, 1, 1);
@@ -254,4 +255,5 @@ const closest_benchmark = () => {
tree.closest(pt);
}, iterations);
}
-closest_benchmark();
+if (RUN_BENCHMARKS)
+ closest_benchmark();