PBS statistics
The shortint
API now keeps track of how many PBS were executed with a global counter when enabling the pbs-stats
feature.
This allows knowing precisely how many PBS are executed in a circuit and estimate the overall compute intensity of FHE code using either the shortint
, integer
or High-Level APIs.
You can query how many PBSes were executed by calling get_pbs_count
. You can reset the PBS count by calling reset_pbs_count
to more easily know how many PBSes were executed by each part of your code.
Combined with the debug mode
it can allow to have estimations very quickly while iterating on the FHE code.
Here is an example of how to use the PBS counter:
Last updated