Concrete Boolean Time per Binary Gate

Hello,

I currently use concrete-boolean to implement boolean operations on ciphertexts. I measured the computation time for boolean gates on my own laptop with a 2,6 GHz 6-core Intel Core i7 processor. I obtained the results in the range of 35 - 37 ms for AND, OR, and XOR gates. However, I read that the time per binary is 11.3 ms with DEFAULT_PARAMETERS in the docs. I also use DEFAULT_PARAMETERS. Is there any reasonable explanation for the difference between computation times?

Thank you for your time.

Hello

The differences in timing is most likely due to lto.

Try to enable fat lto in your Cargo.toml.

[profile.release]
lto = "fat"

You may also want to try compile for ‘native cpu’:

RUSTFLAGS="-C target-cpu=native" cargo ...
1 Like