# Ferveo Benchmarks See [this spreadsheet](https://docs.google.com/spreadsheets/d/1iVE5qpIhF0KUZ7X-2xeSqnMib3RHw_rDOEa5uWRLHyg/edit?usp=sharing) for combined data [Fervo benchmark source](https://github.com/nucypher/ferveo/blob/main/ferveo/examples/bench_primitives_size.rs) [`nucypher-contract` source](https://github.com/nucypher/nucypher-contracts/pull/91) ## Ferveo transcript size benchmark | Nr of shares | Threshold | Transcript size (bytes) | | ------------ | --------- | ------------------------ | | 2 | 2 | 424 | | 4 | 3 | 664 | | 4 | 4 | 712 | | 8 | 5 | 1144 | | 8 | 6 | 1192 | | 8 | 7 | 1240 | | 8 | 8 | 1288 | | 16 | 9 | 2104 | | 16 | 11 | 2200 | | 16 | 13 | 2296 | | 16 | 16 | 2440 | | 32 | 17 | 4024 | | 32 | 22 | 4264 | | 32 | 26 | 4456 | | 32 | 32 | 4744 | | 64 | 33 | 7864 | | 64 | 43 | 8344 | | 64 | 52 | 8776 | | 64 | 64 | 9352 | ## Gas cost of `Coordinator.postTranscript` | Transcript size (bytes) | Total Gas | | ------- | --- | | 424 | 392962 | | 664 | 552118 | | 712 | 597320 | | 1144 | 892719 | | 1192 | 937933 | | 1240 | 960871 | | 1288 | 1006085 | | 2104 | 1573972 | | 2200 | 1642076 | | 2296 | 1710180 | | 2440 | 1823570 | | 4024 | 2936524 | | 4264 | 3117960 | | 4456 | 3254110 | | 4744 | 3458484 | | 7864 | 5661467 | | 8344 | 6002177 | | 8776 | 6319854 | | 9352 | 6728588 | ## Gas cost of `Coordinator.initiateRitual` |Nr of shares | Total Gas | |-------------|-----------| | 2 | 265061 | | 4 | 318774 | | 8 | 426608 | | 16 | 642239 | | 32 | 1076775 | | 64 | 1938340 | ## Gas cost of `Coordinator.postAggregation` | Aggregate size (bytes) | Total Gas | | ------- | --- | | 424 | 510395 | | 664 | 669563 | | 712 | 714777 | | 1144 | 1010188 | | 1192 | 1055390 | | 1240 | 1078280 | | 1288 | 1123542 | | 2104 | 1691405 | | 2200 | 1759557 | | 2296 | 1827541 | | 2440 | 1941015 | | 4024 | 3053897 | | 4264 | 3235369 | | 4456 | 3371711 | | 4744 | 3575953 | | 7864 | 5778828 | | 8344 | 6119550 | | 8776 | 6437215 | | 9352 | 6845961 |