Skip to content

Commit

Permalink
Comment out benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
janetacarr committed Jan 15, 2024
1 parent 4e91889 commit 8739246
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/quadtree_cljc/core_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,15 @@
([entity-f n]
(vec (repeatedly n entity-f))))

#?(:clj
(deftest benchmarking
(testing "1000, 100 max-levels entties in tree"
(let [entities (generate-entities ->random-large-entity)
player (->random-small-entity)
{:keys [mean]} (bench/benchmark (-> (->bounds 0 0 1920 1080)
(->quadtree 1020 100)
(insert-all entities)
(retrieve-intersections player))
{:verbose true})]
(is (> 0.5E-4 (first mean))
"Benchmark should be sub 500us for 1000 large entities")))))

#_(deftest benchmarking
(testing "1000, 100 max-levels entties in tree"
(let [entities (generate-entities ->random-large-entity)
player (->random-small-entity)
{:keys [mean]} (bench/benchmark (-> (->bounds 0 0 1920 1080)
(->quadtree 1020 100)
(insert-all entities)
(retrieve-intersections player))
{:verbose true})]
(is (> 0.5E-4 (first mean))
"Benchmark should be sub 500us for 1000 large entities"))))

0 comments on commit 8739246

Please sign in to comment.