Skip to content

Commit cda656f

Browse files
committed
dirty fix for benchmark test
1 parent 8d1cbed commit cda656f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

benchmark/bench01_distance.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ suite["100kx10"] = @benchmarkable ParallelKMeans.colwise!($d, $X, $centroids)
1919

2020
# for reference
2121
metric = SqEuclidean()
22-
suite["100kx10_distances"] = @benchmarkable Distances.colwise!($d, $metric, $X, $centroids)
23-
22+
#suite["100kx10_distances"] = @benchmarkable Distances.colwise!($d, $metric, $X, $centroids)
23+
dist = Distances.pairwise(metric, X, centroids, dims = 2)
24+
min = minimum(dist, dims=2)
25+
suite["100kx10_distances"] = @benchmarkable $d = min
2426
end # module
2527

2628
BenchDistance.suite

0 commit comments

Comments
 (0)