File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -346,6 +346,19 @@ func ciphertextMultiplyBenchmark<Scheme: HeScheme>(_: Scheme.Type) -> () -> Void
346
346
}
347
347
}
348
348
349
+ func ciphertextMultiplyInversePowerOfXBenchmark< Scheme: HeScheme > ( _: Scheme . Type ) -> ( ) -> Void {
350
+ {
351
+ benchmark ( " CiphertextMultiplyInversePowerOfX " , Scheme . self) { benchmark in
352
+ let benchmarkContext : RlweBenchmarkContext < Scheme > = try StaticRlweBenchmarkContext . getBenchmarkContext ( )
353
+ benchmark. startMeasurement ( )
354
+ var ciphertext = try benchmarkContext. ciphertext. convertToCoeffFormat ( )
355
+ for _ in benchmark. scaledIterations {
356
+ try blackHole ( ciphertext. multiplyInversePowerOfX ( power: ciphertext. context. degree / 2 ) )
357
+ }
358
+ }
359
+ }
360
+ }
361
+
349
362
func ciphertextRelinearizeBenchmark< Scheme: HeScheme > ( _: Scheme . Type ) -> ( ) -> Void {
350
363
{
351
364
benchmark ( " CiphertextRelinearize " , Scheme . self) { benchmark in
@@ -665,6 +678,9 @@ nonisolated(unsafe) let benchmarks: () -> Void = {
665
678
ciphertextSubtractBenchmark ( Bfv< UInt32> . self ) ( )
666
679
ciphertextSubtractBenchmark ( Bfv< UInt64> . self ) ( )
667
680
681
+ ciphertextMultiplyInversePowerOfXBenchmark ( Bfv< UInt32> . self ) ( )
682
+ ciphertextMultiplyInversePowerOfXBenchmark ( Bfv< UInt64> . self ) ( )
683
+
668
684
ciphertextMultiplyBenchmark ( Bfv< UInt32> . self ) ( )
669
685
ciphertextMultiplyBenchmark ( Bfv< UInt64> . self ) ( )
670
686
You can’t perform that action at this time.
0 commit comments