kaivalnp commented on PR #15341: URL: https://github.com/apache/lucene/pull/15341#issuecomment-3412246926
I wrote a small JMH benchmark to "pad" float vectors on disk with some `padBytes`: ``` Benchmark (padBytes) (size) Mode Cnt Score Error Units VectorScorerBenchmark.floatDotProductMemSeg 0 256 thrpt 15 32.848 ± 0.098 ops/us VectorScorerBenchmark.floatDotProductMemSeg 1 256 thrpt 15 24.158 ± 0.410 ops/us VectorScorerBenchmark.floatDotProductMemSeg 2 256 thrpt 15 24.055 ± 0.291 ops/us VectorScorerBenchmark.floatDotProductMemSeg 4 256 thrpt 15 26.381 ± 0.078 ops/us VectorScorerBenchmark.floatDotProductMemSeg 6 256 thrpt 15 23.772 ± 0.785 ops/us VectorScorerBenchmark.floatDotProductMemSeg 8 256 thrpt 15 26.666 ± 0.039 ops/us VectorScorerBenchmark.floatDotProductMemSeg 16 256 thrpt 15 26.753 ± 0.112 ops/us VectorScorerBenchmark.floatDotProductMemSeg 20 256 thrpt 15 26.489 ± 0.229 ops/us VectorScorerBenchmark.floatDotProductMemSeg 32 256 thrpt 15 32.805 ± 0.106 ops/us VectorScorerBenchmark.floatDotProductMemSeg 50 256 thrpt 15 24.651 ± 0.556 ops/us VectorScorerBenchmark.floatDotProductMemSeg 64 256 thrpt 15 32.762 ± 0.376 ops/us VectorScorerBenchmark.floatDotProductMemSeg 100 256 thrpt 15 25.888 ± 0.069 ops/us VectorScorerBenchmark.floatDotProductMemSeg 128 256 thrpt 15 32.874 ± 0.065 ops/us VectorScorerBenchmark.floatDotProductMemSeg 255 256 thrpt 15 24.906 ± 0.120 ops/us VectorScorerBenchmark.floatDotProductMemSeg 256 256 thrpt 15 32.780 ± 0.091 ops/us ``` My machine uses the 256-bit variant of Panama to score vectors, so I saw optimal performance when floats are aligned to 32 bytes -- but keeping it 64 here as the max case.. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
