#include "bench.h"
#include "random.h"
#include "bls/bls_worker.h"
Go to the source code of this file.
|
| void | InitIfNeeded () |
| |
| void | CleanupBLSDkgTests () |
| |
| | BENCH_BuildQuorumVerificationVectors (simple, 10, false, 11000) BENCH_BuildQuorumVerificationVectors(simple |
| |
| | BENCH_BuildQuorumVerificationVectors (simple, 400, false, 6) BENCH_BuildQuorumVerificationVectors(parallel |
| |
| | BENCH_BuildQuorumVerificationVectors (parallel, 100, true, 170) BENCH_BuildQuorumVerificationVectors(parallel |
| |
| | BENCH_VerifyContributionShares (simple, 10, 5, false, false, 70) BENCH_VerifyContributionShares(simple |
| |
| | BENCH_VerifyContributionShares (simple, 400, 5, false, false, 1) BENCH_VerifyContributionShares(aggregated |
| |
| | BENCH_VerifyContributionShares (aggregated, 100, 5, false, true, 2) BENCH_VerifyContributionShares(aggregated |
| |
| | BENCH_VerifyContributionShares (parallel, 10, 5, true, false, 200) BENCH_VerifyContributionShares(parallel |
| |
| | BENCH_VerifyContributionShares (parallel, 400, 5, true, false, 1) BENCH_VerifyContributionShares(parallel_aggregated |
| |
| | BENCH_VerifyContributionShares (parallel_aggregated, 100, 5, true, true, 4) BENCH_VerifyContributionShares(parallel_aggregated |
| |
◆ BENCH_BuildQuorumVerificationVectors
| #define BENCH_BuildQuorumVerificationVectors |
( |
|
name, |
|
|
|
quorumSize, |
|
|
|
parallel, |
|
|
|
num_iters_for_one_second |
|
) |
| |
Value:
{ \
InitIfNeeded(); \
dkg##quorumSize->Bench_BuildQuorumVerificationVectors(state, parallel); \
} \
BENCHMARK(BLSDKG_BuildQuorumVerificationVectors_##
name##
_##quorumSize, num_iters_for_one_second)
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a Optional result.
Definition at line 142 of file bls_dkg.cpp.
◆ BENCH_VerifyContributionShares
| #define BENCH_VerifyContributionShares |
( |
|
name, |
|
|
|
quorumSize, |
|
|
|
invalidCount, |
|
|
|
parallel, |
|
|
|
aggregated, |
|
|
|
num_iters_for_one_second |
|
) |
| |
Value:
{ \
InitIfNeeded(); \
dkg##quorumSize->Bench_VerifyContributionShares(state, invalidCount, parallel, aggregated); \
} \
BENCHMARK(BLSDKG_VerifyContributionShares_##
name##
_##quorumSize, num_iters_for_one_second)
Definition at line 161 of file bls_dkg.cpp.
◆ BENCH_BuildQuorumVerificationVectors() [1/3]
| BENCH_BuildQuorumVerificationVectors |
( |
parallel |
, |
|
|
100 |
, |
|
|
true |
, |
|
|
170 |
|
|
) |
| |
◆ BENCH_BuildQuorumVerificationVectors() [2/3]
| BENCH_BuildQuorumVerificationVectors |
( |
simple |
, |
|
|
10 |
, |
|
|
false |
, |
|
|
11000 |
|
|
) |
| |
◆ BENCH_BuildQuorumVerificationVectors() [3/3]
| BENCH_BuildQuorumVerificationVectors |
( |
simple |
, |
|
|
400 |
, |
|
|
false |
, |
|
|
6 |
|
|
) |
| |
◆ BENCH_VerifyContributionShares() [1/6]
| BENCH_VerifyContributionShares |
( |
aggregated |
, |
|
|
100 |
, |
|
|
5 |
, |
|
|
false |
, |
|
|
true |
, |
|
|
2 |
|
|
) |
| |
◆ BENCH_VerifyContributionShares() [2/6]
| BENCH_VerifyContributionShares |
( |
parallel |
, |
|
|
10 |
, |
|
|
5 |
, |
|
|
true |
, |
|
|
false |
, |
|
|
200 |
|
|
) |
| |
◆ BENCH_VerifyContributionShares() [3/6]
| BENCH_VerifyContributionShares |
( |
parallel |
, |
|
|
400 |
, |
|
|
5 |
, |
|
|
true |
, |
|
|
false |
, |
|
|
1 |
|
|
) |
| |
◆ BENCH_VerifyContributionShares() [4/6]
| BENCH_VerifyContributionShares |
( |
parallel_aggregated |
, |
|
|
100 |
, |
|
|
5 |
, |
|
|
true |
, |
|
|
true |
, |
|
|
4 |
|
|
) |
| |
◆ BENCH_VerifyContributionShares() [5/6]
| BENCH_VerifyContributionShares |
( |
simple |
, |
|
|
10 |
, |
|
|
5 |
, |
|
|
false |
, |
|
|
false |
, |
|
|
70 |
|
|
) |
| |
◆ BENCH_VerifyContributionShares() [6/6]
| BENCH_VerifyContributionShares |
( |
simple |
, |
|
|
400 |
, |
|
|
5 |
, |
|
|
false |
, |
|
|
false |
, |
|
|
1 |
|
|
) |
| |
◆ CleanupBLSDkgTests()
| void CleanupBLSDkgTests |
( |
| ) |
|
◆ InitIfNeeded()
◆ blsWorker
◆ dkg10
| std::shared_ptr<DKG> dkg10 |
◆ dkg100
| std::shared_ptr<DKG> dkg100 |
◆ dkg400
| std::shared_ptr<DKG> dkg400 |
◆ false
◆ true