fhelium.benchmarks.v1.cases
The five fixed cross-backend case positions of FHElium Benchmark v1.
BENCHMARK_MANIFEST_SHA256
constant View source
python
BENCHMARK_MANIFEST_SHA256 = '5b9ce22abf59cb5b37dcc59062e2f856df40584470082fd0a4c6f08ee9b81c4b'1
BENCHMARK_VERSION
constant View source
python
BENCHMARK_VERSION = 'v1'1
CASES
constant View source
python
CASES = (_case(id='ckks-depth-aware-single-operations', title='Depth-aware CKKS single operations', category='Single operations', benchmark='ckks-depth-aware-single-operations', comparison={'axis': ['operation', 'entry_level'], 'portal_highlight': {'label': 'CT × CT multiply · level 0', 'operation': 'multiply', 'entry_level': 0, 'metric': 'depth-aware-ckks-operation-latency'}}), _case(id='indexed-ntt-operations', title='Indexed radix-2 NTT operations', category='NTT operations', benchmark='indexed-ntt-operations', comparison={'axis': ['entry_level', 'modulus_basis', 'operation'], 'portal_highlight': {'label': 'Forward NTT · level 0 Q', 'metric': 'indexed-ntt-latency', 'entry_level': 0, 'modulus_basis': 'Q', 'operation': 'forward_ntt'}}), _case(id='dense-matmul-ptct', title='Plaintext × ciphertext dense matrix multiplication', category='Matrix multiplication', benchmark='dense-matrix-multiplication-ptct', comparison={'portal_highlight': {'label': 'PT × CT 16×16', 'metric': 'dense-matrix-multiplication-latency', 'phase': 'end-to-end'}}), _case(id='dense-matmul-ctct', title='Ciphertext × ciphertext dense matrix multiplication', category='Matrix multiplication', benchmark='dense-matrix-multiplication-ctct', comparison={'portal_highlight': {'label': 'CT × CT 16×16', 'metric': 'dense-matrix-multiplication-latency', 'phase': 'end-to-end'}}), _case(id='polynomial-method-matrix', title='Affine and degree-four polynomial methods', category='Polynomial evaluation', benchmark='polynomial-evaluation', comparison={'axis': ['case_id', 'method_id'], 'portal_highlight': {'label': 'Degree 4 · PS k=2', 'case_id': 'dense-power-d4', 'method_id': 'dense-power-d4-paterson-stockmeyer-k2', 'metric': 'polynomial-evaluation-latency'}}))1
DEFINITIONS
constant View source
python
DEFINITIONS = MappingProxyType(_DEFINITION_MAP)1
FIXED_DEFINITIONS
constant View source
python
FIXED_DEFINITIONS = FixedDefinitions()1
SPECIFICATION
constant View source
python
SPECIFICATION = BenchmarkSpecification(benchmark_version=BENCHMARK_VERSION, title='FHElium Benchmark v1', description='Measures one immutable five-case CKKS specification on either CPU or CUDA: depth-aware public operations, indexed radix-2 NTT operations, fixed 16x16 plaintext/ciphertext and ciphertext/ciphertext matrix products, and affine/degree-four polynomial methods. Every case uses the same parameters on both execution backends; no composite score is defined.', cases=CASES)1