0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-16 00:41:25 -05:00

Update bench/dev code for use new generate function.

This commit is contained in:
Andrey Antukh 2016-06-11 19:52:08 +03:00
parent 8e84751181
commit 48af73792e
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -21,20 +21,23 @@
(defn- bench-init-10000
[]
(println "1000x1000,10 -> 10000 points")
(let [tree (k/create)]
(time
(k/setup tree 1000 1000 10 10))))
(time
(k/generate 1000 1000 10 10)))
(defn- bench-init-250000
[]
(println "5000x5000,10 -> 250000 points")
(let [tree (k/create)]
(time
(k/setup tree 5000 5000 10 10))))
(time
(k/generate 5000 5000 10 10)))
(defn bench-init
[]
(bench-init-10000)
(bench-init-10000)
(bench-init-250000)
(bench-init-250000)
(bench-init-10000)
(bench-init-10000)
(bench-init-250000)
(bench-init-250000))
;; --- Nearest Search Benchmark