Skip to content

Commit d27ef8c

Browse files
committed
Improve: New Rust benchmark suite
AMD Turin, f32 x 1536d vectors 8-way loop unrolled Rust code with separate accumulators vs SimSIMD for cosine (angular) distance: > 913 ns vs 85 ns - 10x improvement For dot-product: > 252 ns vs 66 ns - 3.8x
1 parent b6dd492 commit d27ef8c

File tree

5 files changed

+522
-361
lines changed

5 files changed

+522
-361
lines changed

Cargo.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,9 @@ cc = "1.2.36"
2929

3030

3131
[[bench]]
32-
name = "cosine"
32+
name = "bench"
3333
harness = false
34-
path = "scripts/bench_cosine.rs"
35-
36-
[[bench]]
37-
name = "sqeuclidean"
38-
harness = false
39-
path = "scripts/bench_sqeuclidean.rs"
34+
path = "scripts/bench.rs"
4035

4136
[profile.bench]
4237
opt-level = 3 # Corresponds to -O3

0 commit comments

Comments
 (0)