HUSTERGS commented on PR #14896: URL: https://github.com/apache/lucene/pull/14896#issuecomment-3039195854
@jpountz Thank you ! I ran the latest benchmark on my machine, here is the result if it helps. Actually I'm a little surprised that the `minScoreInclusive ? 1 : 0;` trick could even be vectorized (I thought it's essentially a branch) ``` Benchmark (minScoreInclusive) (size) Mode Cnt Score Error Units CompetitiveBenchmark.baseline 0 128 thrpt 5 13309.668 ± 197.044 ops/ms CompetitiveBenchmark.baseline 0.2 128 thrpt 5 8221.439 ± 1031.703 ops/ms CompetitiveBenchmark.baseline 0.4 128 thrpt 5 8730.349 ± 587.034 ops/ms CompetitiveBenchmark.baseline 0.5 128 thrpt 5 8820.411 ± 818.647 ops/ms CompetitiveBenchmark.baseline 0.8 128 thrpt 5 9725.386 ± 223.400 ops/ms CompetitiveBenchmark.branchlessCandidate 0 128 thrpt 5 13223.716 ± 291.144 ops/ms CompetitiveBenchmark.branchlessCandidate 0.2 128 thrpt 5 6860.382 ± 391.623 ops/ms CompetitiveBenchmark.branchlessCandidate 0.4 128 thrpt 5 7099.938 ± 252.923 ops/ms CompetitiveBenchmark.branchlessCandidate 0.5 128 thrpt 5 7102.366 ± 161.438 ops/ms CompetitiveBenchmark.branchlessCandidate 0.8 128 thrpt 5 7066.443 ± 163.843 ops/ms CompetitiveBenchmark.vectorizedCandidate 0 128 thrpt 5 17080.349 ± 279.760 ops/ms CompetitiveBenchmark.vectorizedCandidate 0.2 128 thrpt 5 15377.128 ± 773.486 ops/ms CompetitiveBenchmark.vectorizedCandidate 0.4 128 thrpt 5 16577.158 ± 508.222 ops/ms CompetitiveBenchmark.vectorizedCandidate 0.5 128 thrpt 5 12763.475 ± 205.681 ops/ms CompetitiveBenchmark.vectorizedCandidate 0.8 128 thrpt 5 15947.123 ± 175.975 ops/ms ``` -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org