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:
parent
8e84751181
commit
48af73792e
1 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue