fhelium.benchmarks.v1.operations
Benchmark CKKS public-call latency across every active Q-chain depth.
BENCHMARK_NAME
constant View source
python
BENCHMARK_NAME = 'ckks-depth-aware-single-operations'1
FIXED_PRESET
constant View source
python
FIXED_PRESET = Preset.slots8192_scale40_levels7_int641
FIXED_NTT_BACKEND
constant View source
python
FIXED_NTT_BACKEND = 'radix2_indexed'1
DEFAULT_SEED
constant View source
python
DEFAULT_SEED = 202608071
DEFAULT_NONCE
constant View source
python
DEFAULT_NONCE = 01
ROTATION_STEP
constant View source
python
ROTATION_STEP = 11
RESCALE_ROUNDING
constant View source
python
RESCALE_ROUNDING: Literal['nearest', 'floor'] = 'nearest'1
CANONICAL_OPERATIONS
constant View source
python
CANONICAL_OPERATIONS = ('encrypt', 'decrypt', 'coefficient_domain_to_ntt_domain', 'ntt_domain_to_coefficient_domain', 'add', 'add_plaintext', 'multiply_plaintext', 'multiply', 'relinearize', 'rotate_with_key', 'rescale_to_next_level', 'mod_switch_to_next_level')1
DEFINITION
constant View source
python
DEFINITION = register_benchmark(BenchmarkDefinition(name=BENCHMARK_NAME, title='Depth-aware CKKS single operations', category='local device', description='Measures twelve functional public CKKS calls on one fixed cross-backend CKKS plan while sweeping exact active-Q entry levels. Setup and correctness canonicalization are excluded from synchronized call timing.', profiles=(BenchmarkProfile(name='quick', description='Representative entry levels 0, 3, 5, and 6 with short timing loops.', parameters=_profile_parameters(levels=(0, 3, 5, 6), warmup=1, runs=3)), BenchmarkProfile(name='core', description='All seven public entry levels with the complete twelve-call measurement definition and raw timing samples.', parameters=_profile_parameters(levels=tuple(range(7)), warmup=1, runs=3))), runner=cast(Any, _run_depth_aware_operations), workload_id=BENCHMARK_NAME))1