From 070d3c41abac1063c4a410df2dd9dd0352e2d308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Test=C3=A9?= Date: Tue, 4 Mar 2025 15:55:10 +0100 Subject: [PATCH] docs: change svg benchmark tables appearance --- ...ger_benchmark_tuniform_2m64_ciphertext.svg | 424 ++++++++---------- 1 file changed, 184 insertions(+), 240 deletions(-) diff --git a/tfhe/docs/_static/cpu_integer_benchmark_tuniform_2m64_ciphertext.svg b/tfhe/docs/_static/cpu_integer_benchmark_tuniform_2m64_ciphertext.svg index 4adbff901c..2d6391c1d0 100644 --- a/tfhe/docs/_static/cpu_integer_benchmark_tuniform_2m64_ciphertext.svg +++ b/tfhe/docs/_static/cpu_integer_benchmark_tuniform_2m64_ciphertext.svg @@ -1,247 +1,191 @@ - + - - Operation \ Size - FheUint4 - FheUint8 - FheUint16 - FheUint32 - FheUint64 - FheUint128 - FheUint256 + + Operation \ Size + FheUint8 + FheUint16 + FheUint32 + FheUint64 + FheUint128 - - Negation (`-`) - - 33.1 ms - - 48.7 ms - - 57.6 ms - - 81.2 ms - - 106 ms - - 168 ms - - 189 ms - - Add / Sub (`+`,`-`) - - 38.1 ms - - 59.9 ms - - 60.2 ms - - 82.2 ms - - 105 ms - - 168 ms - - 182 ms - - Mul (`x`) - - 40.6 ms - - 103 ms - - 143 ms - - 219 ms - - 401 ms - - 1.15 s - - 3.84 s - - Equal / Not Equal (`eq`, `ne`) - - 36.5 ms - - 37.1 ms - - 58.3 ms - - 59.0 ms - - 81.2 ms - - 82.3 ms - - 106 ms - - Comparisons (`ge`, `gt`, `le`, `lt`) - - 36.3 ms - - 37.4 ms - - 57.2 ms - - 80.1 ms - - 102 ms - - 145 ms - - 175 ms - - Max / Min (`max`,`min`) - - 79.4 ms - - 79.8 ms - - 99.8 ms - - 122 ms - - 145 ms - - 192 ms - - 246 ms - - Bitwise operations (`&`, `|`, `^`) - - 19.8 ms - - 19.4 ms - - 19.6 ms - - 20.5 ms - - 20.7 ms - - 23.3 ms - - 26.0 ms - - Div / Rem (`/`, `%`) - - 291 ms - - 693 ms - - 1.56 s - - 3.52 s - - 8.22 s - - 21.1 s - - 55.2 s - - Left / Right Shifts (`<<`, `>>`) - - 38.5 ms - - 61.2 ms - - 84.3 ms - - 109 ms - - 134 ms - - 174 ms - - 250 ms - - Left / Right Rotations (`left_rotate`, `right_rotate`) - - 40.4 ms - - 61.4 ms - - 82.6 ms - - 105 ms - - 133 ms - - 184 ms - - 259 ms - - Leading / Trailing zeros/ones - - 80.5 ms - - 100 ms - - 156 ms - - 183 ms - - 247 ms - - 298 ms - - 347 ms - - Log2 - - 100 ms - - 121 ms - - 182 ms - - 205 ms - - 267 ms - - 323 ms - - 369 ms - - Select - - 27.6 ms - - 30.9 ms - - 32.2 ms - - 33.3 ms - - 32.6 ms - - 37.2 ms - - 51.0 ms + + Negation (`-`) + + 32.1 ms + + 48.7 ms + + 57.0 ms + + 78.0 ms + + 103 ms + + Add / Sub (`+`,`-`) + + 32.1 ms + + 52.5 ms + + 58.1 ms + + 79.9 ms + + 101 ms + + Mul (`x`) + + 38.5 ms + + 94.4 ms + + 136 ms + + 210 ms + + 381 ms + + Equal / Not Equal (`eq`, `ne`) + + 36.7 ms + + 36.3 ms + + 55.6 ms + + 55.0 ms + + 76.3 ms + + Comparisons (`ge`, `gt`, `le`, `lt`) + + 36.3 ms + + 36.1 ms + + 54.2 ms + + 73.8 ms + + 94.8 ms + + Max / Min (`max`,`min`) + + 76.6 ms + + 74.9 ms + + 94.2 ms + + 115 ms + + 138 ms + + Bitwise operations (`&`, `|`, `^`) + + 18.9 ms + + 18.6 ms + + 19.0 ms + + 19.4 ms + + 20.3 ms + + Div / Rem (`/`, `%`) + + 292 ms + + 667 ms + + 1.49 s + + 3.39 s + + 7.87 s + + Left / Right Shifts (`<<`, `>>`) + + 19.7 ms + + 59.9 ms + + 79.2 ms + + 100 ms + + 128 ms + + Left / Right Rotations (`left_rotate`, `right_rotate`) + + 19.2 ms + + 57.4 ms + + 77.1 ms + + 98.9 ms + + 128 ms + + Leading / Trailing zeros/ones + + 74.0 ms + + 96.5 ms + + 153 ms + + 172 ms + + 234 ms + + Log2 + + 93.4 ms + + 114 ms + + 170 ms + + 195 ms + + 256 ms + + Select + + 28.5 ms + + 28.9 ms + + 29.4 ms + + 31.0 ms + + 31.9 ms - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +