Skip to content

Commit 2e57cf2

Browse files
committed
Increase allocated space for cosine calculations in SQ8 benchmark setup
1 parent 9e50d7c commit 2e57cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/benchmark/spaces_benchmarks/bm_spaces_sq8.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class BM_VecSimSpaces_SQ8 : public benchmark::Fixture {
2525
v1 = new float[dim];
2626
test_utils::populate_float_vec(v1, dim, 123);
2727
// Allocate vector with extra space for min, delta and cosine calculations
28-
v2 = new uint8_t[dim + sizeof(float) * 3];
28+
v2 = new uint8_t[dim + sizeof(float) * 4];
2929
test_utils::populate_float_vec_to_sq8_with_metadata(v2, dim, 1234, true);
3030
}
3131
void TearDown(const ::benchmark::State &state) {

0 commit comments

Comments
 (0)