Files
tfhe-rs/tfhe/docs/getting-started/benchmarks/hpu/hpu-integer-operations.md
Arthur Meyre bd739c2d48 chore(docs): uniformize paths in docs to use "-" instead of "_"
- this is to avoid conflicts with gitbook
2025-07-09 14:36:04 +02:00

31 lines
1.1 KiB
Markdown

# Integer Operations over HPU
This document details the HPU performance benchmarks of homomorphic operations on integers using **TFHE-rs**.
{% hint style="info" %}
All HPU benchmarks were launched on AMD Alveo v80 FPGAs.
{% endhint %}
The cryptographic parameters `HPU_PARAM_MESSAGE_2_CARRY_2_KS32_PBS_TUNIFORM_2M128` were used.
## 1xHPU
Below are the results for the execution on a single Alveo v80 board.
The following table shows the performance when the inputs of the benchmarked operation are encrypted:
![](../../../.gitbook/assets/hpu-integer-benchmark-hpux1-tuniform-2m128-ciphertext.svg)
The following table shows the performance when the left input of the benchmarked operation is encrypted and the other is a clear scalar of the same size:
![](../../../.gitbook/assets/hpu-integer-benchmark-hpux1-tuniform-2m128-plaintext.svg)
## Reproducing TFHE-rs benchmarks
**TFHE-rs** benchmarks can be easily reproduced from the [source](https://github.com/zama-ai/tfhe-rs).
The following example shows how to reproduce **TFHE-rs** benchmarks:
```shell
#Integer benchmarks:
make bench_integer_hpu
```