- Python 3.9
- Pyfhel 3.4.1
Directly run main.py.
| Operation | Amortized running time per record (µs) | |
|---|---|---|
| HE | Plaintext add | 0.13 |
| Ciphertext add | 0.10 | |
| Plaintext mul | 0.04 | |
| Ciphertext mul | 4.84 | |
| Rotation | 1.81 | |
| Relinearization | 1.78 | |
| Building Block | 8-bit elementwise mapping | 664.29 |
| Boolean - NOT | 0.09 | |
| Boolean - AND | 6.21 | |
| Boolean - OR | 6.25 | |
| Composition | 16-bit equality check | 1163.70 |
| 16-bit range query (single side) | 1830.74 | |
| 16-bit range query (double side) | ||
| 32-bit equality check | 2526.90 | |
| 32-bit range query (single side) | ||
| 32-bit range query (double side) | ||