dweiss commented on PR #12737: URL: https://github.com/apache/lucene/pull/12737#issuecomment-1786776417
Nice. I checked with AMD Ryzen Threadripper 3970X. Note it's actually slightly faster when not using FMA... ``` JDK 17, patch java -jar lucene\benchmark-jmh\build\benchmarks\lucene-benchmark-jmh-10.0.0-SNAPSHOT.jar "VectorUtilBenchmark\.float.*Scalar" -p size=1024 VectorUtilBenchmark.floatCosineScalar 1024 thrpt 5 1.611 ± 0.009 ops/us VectorUtilBenchmark.floatDotProductScalar 1024 thrpt 5 3.324 ± 0.005 ops/us VectorUtilBenchmark.floatSquareScalar 1024 thrpt 5 3.305 ± 0.053 ops/us ``` ``` java -XX:-UseFMA -jar lucene\benchmark-jmh\build\benchmarks\lucene-benchmark-jmh-10.0.0-SNAPSHOT.jar "VectorUtilBenchmark\.float.*Scalar" -p size=1024 VectorUtilBenchmark.floatCosineScalar 1024 thrpt 5 2.028 ± 0.012 ops/us VectorUtilBenchmark.floatDotProductScalar 1024 thrpt 5 4.045 ± 0.011 ops/us VectorUtilBenchmark.floatSquareScalar 1024 thrpt 5 3.254 ± 0.043 ops/us ``` ``` JDK 17, main (85f5d3bb0bf) java -jar lucene\benchmark-jmh\build\benchmarks\lucene-benchmark-jmh-10.0.0-SNAPSHOT.jar "VectorUtilBenchmark\.float.*Scalar" -p size=1024 VectorUtilBenchmark.floatCosineScalar 1024 thrpt 5 1.192 ± 0.006 ops/us VectorUtilBenchmark.floatDotProductScalar 1024 thrpt 5 3.837 ± 0.005 ops/us VectorUtilBenchmark.floatSquareScalar 1024 thrpt 5 2.523 ± 0.014 ops/us ``` ``` java -XX:-UseFMA -jar lucene\benchmark-jmh\build\benchmarks\lucene-benchmark-jmh-10.0.0-SNAPSHOT.jar "VectorUtilBenchmark\.float.*Scalar" -p size=1024 VectorUtilBenchmark.floatCosineScalar 1024 thrpt 5 1.196 ± 0.006 ops/us VectorUtilBenchmark.floatDotProductScalar 1024 thrpt 5 3.841 ± 0.015 ops/us VectorUtilBenchmark.floatSquareScalar 1024 thrpt 5 2.525 ± 0.010 ops/us ``` -- 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