I hope you are all well.
I have a question concerning the performance of programs in SCALE-MAMBA.
The following code is what I am computing, and the diagram is the runtime behaviour I am observing. It changes significantly after 8 participants. And we see this effect even more dramatically on our large application. Is there any explanation for this?
I have checked the documentation for an explanation, but I could not find it. I am sorry if I am missing anything.
Thank you for your time in advance.
Kind regards,
Sakine Yalman
#![no_std]
#![no_main]
const COMPANY_NUM:u64 = $numberofcompanies;
fn calculate_aggregated_value() {
let mut secret_result= SecretModp::from(0);
let x: i64 = 100;
for i in 0..COMPANY_NUM {
secret_result= secret_result + SecretModp::from(SecretI64::from(x.rand()));
}
// Output Aggregated Value to main(0) company //
secret_result.private_output(0,10);
}
#[scale::main(KAPPA = 40)]
#[inline(always)]
fn main() {
let v: i64 = 1;
let _ans = open_channel(10);
v.output(0);
// Calculation of Aggregated Value//
calculate_aggregated_value();
close_channel(10);
}