Skip to content

Commit b2bb09e

Browse files
committed
Updated distance benchmark with metric
1 parent cdc758c commit b2bb09e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/bench01_distance.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Random.seed!(2020)
1010
X = rand(3, 100_000)
1111
centroids = rand(3, 2)
1212
d = Vector{Float64}(undef, 100_000)
13-
suite["100kx3"] = @benchmarkable ParallelKMeans.chunk_colwise($d, $X, $centroids, 1, nothing, 1:100_000, 1)
13+
suite["100kx3"] = @benchmarkable ParallelKMeans.chunk_colwise($d, $X, $centroids, 1, nothing, Euclidean(), 1:100_000, 1)
1414

1515
X = rand(10, 100_000)
1616
centroids = rand(10, 2)
1717
d = Vector{Float64}(undef, 100_000)
18-
suite["100kx10"] = @benchmarkable ParallelKMeans.chunk_colwise($d, $X, $centroids, 1, nothing, 1:100_000, 1)
18+
suite["100kx10"] = @benchmarkable ParallelKMeans.chunk_colwise($d, $X, $centroids, 1, nothing, Euclidean(), 1:100_000, 1)
1919

2020
end # module
2121

0 commit comments

Comments
 (0)