valhalla
valhalla copied to clipboard
8341003: [lworld+fp16] Benchmarks for various Float16 operations
- Adding micro-benchmarks for various Float16 operations.
- Adding similarity search targeting micro-benchmarks.
Please find below the results of performance testing over Intel Xeon6 Granite Rapids:-
Benchmark (vectorDim) Mode Cnt Score Error Units
Float16OpsBenchmark.absBenchmark 1024 thrpt 2 25605.990 ops/ms
Float16OpsBenchmark.addBenchmark 1024 thrpt 2 19222.468 ops/ms
Float16OpsBenchmark.cosineSimilarityDequantizedFP16 1024 thrpt 2 528.738 ops/ms
Float16OpsBenchmark.cosineSimilarityDoubleRoundingFP16 1024 thrpt 2 660.018 ops/ms
Float16OpsBenchmark.cosineSimilaritySingleRoundingFP16 1024 thrpt 2 659.799 ops/ms
Float16OpsBenchmark.divBenchmark 1024 thrpt 2 1974.039 ops/ms
Float16OpsBenchmark.euclideanDistanceDequantizedFP16 1024 thrpt 2 743.071 ops/ms
Float16OpsBenchmark.euclideanDistanceFP16 1024 thrpt 2 682.440 ops/ms
Float16OpsBenchmark.fmaBenchmark 1024 thrpt 2 14052.422 ops/ms
Float16OpsBenchmark.isFiniteBenchmark 1024 thrpt 2 3851.234 ops/ms
Float16OpsBenchmark.isInfiniteBenchmark 1024 thrpt 2 1496.207 ops/ms
Float16OpsBenchmark.isNaNBenchmark 1024 thrpt 2 2778.822 ops/ms
Float16OpsBenchmark.maxBenchmark 1024 thrpt 2 19231.326 ops/ms
Float16OpsBenchmark.minBenchmark 1024 thrpt 2 19257.589 ops/ms
Float16OpsBenchmark.mulBenchmark 1024 thrpt 2 19236.498 ops/ms
Float16OpsBenchmark.negateBenchmark 1024 thrpt 2 25938.789 ops/ms
Float16OpsBenchmark.sqrtBenchmark 1024 thrpt 2 1759.051 ops/ms
Float16OpsBenchmark.subBenchmark 1024 thrpt 2 19242.967 ops/ms
Best Regrads, Jatin
Progress
- [x] Change must not contain extraneous whitespace
Issue
- JDK-8341003: [lworld+fp16] Benchmarks for various Float16 operations (Enhancement - P4)
Reviewing
Using git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/1254/head:pull/1254
$ git checkout pull/1254
Update a local copy of the PR:
$ git checkout pull/1254
$ git pull https://git.openjdk.org/valhalla.git pull/1254/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1254
View PR using the GUI difftool:
$ git pr show -t 1254
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/1254.diff