-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: refactor and update benchmarks pages
Benchmarks tables are rendered as descriptive SVG images. Sort results by backend to have a clearer view in tree of content. PBS benchmarks now display results for various p-fail and several precisions.
- Loading branch information
Showing
20 changed files
with
1,624 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,4 @@ package-lock.json | |
|
||
# Dir used for backward compatibility test data | ||
tests/tfhe-backward-compat-data/ | ||
ci/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ocs/getting_started/benchmarks/summary.md → ...docs/getting_started/benchmarks/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Benchmarks | ||
|
||
This document summarizes the timings of some homomorphic operations over 64-bit encrypted integers, depending on the hardware. More details are given for [the CPU](cpu\_benchmarks.md), [the GPU](gpu\_benchmarks.md), or [zeros-knowledge proofs](zk\_proof\_benchmarks.md). | ||
This document summarizes the timings of some homomorphic operations over 64-bit encrypted integers, depending on the hardware. More details are given for [the CPU](cpu/summary.md), [the GPU](gpu/summary.md), or [zeros-knowledge proofs](zk_proof_benchmarks.md). | ||
Check failure on line 3 in tfhe/docs/getting_started/benchmarks/README.md
|
||
|
||
The cryptographic parameters used for benchmarking follow a tweaked uniform (TUniform) noise distribution instead of a Gaussian. The main advantage of this distribution is to be bounded, whereas the usual Gaussian one is not. In some practical cases, this can simplify the use of homomorphic computation. See the [noise section](../security\_and\_cryptography.md#noise) of the Security and cryptography documentation page for more information on the noise distributions. | ||
The cryptographic parameters used for benchmarking follow a tweaked uniform (TUniform) noise distribution instead of a Gaussian. The main advantage of this distribution is to be bounded, whereas the usual Gaussian one is not. In some practical cases, this can simplify the use of homomorphic computation. See the [noise section](../security_and_cryptography.md#noise) of the Security and cryptography documentation page for more information on the noise distributions. | ||
|
||
You can get the parameters used for benchmarks by cloning the repository and checking out the commit you want to use (starting with the v0.8.0 release) and run the following make command: | ||
|
||
```console | ||
make print_doc_bench_parameters | ||
``` | ||
|
||
### Operation time (ms) over FheUint 64 | ||
### Operation time over FheUint 64 | ||
|
||
{% embed url="https://docs.google.com/spreadsheets/d/1OMdGSakEUbIFSEQKhAinTolJjvmPBbafi3DEe3UfzsQ/edit?usp=sharing" %} | ||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Benchmarks over CPU | ||
|
||
This document details the CPU performance benchmarks of homomorphic operations using **TFHE-rs**. | ||
|
||
By their nature, homomorphic operations run slower than their cleartext equivalents. | ||
|
||
{% hint style="info" %} | ||
All CPU benchmarks were launched on an `AWS hpc7a.96xlarge` instance equipped with an `AMD EPYC 9R14 CPU @ 2.60GHz` and 740GB of RAM. | ||
{% endhint %} | ||
|
||
* [Integer operations](cpu_integer_operations.md) | ||
* [Programmable Bootstrapping](cpu_programmable_bootstrapping.md) |
230 changes: 230 additions & 0 deletions
230
...ting_started/benchmarks/cpu/cpu_integer_benchmark_tuniform_2m128_ciphertext.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
196 changes: 196 additions & 0 deletions
196
...tting_started/benchmarks/cpu/cpu_integer_benchmark_tuniform_2m128_plaintext.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.