PIVX Core  5.6.99
P2P Digital Currency
Classes | Macros | Functions | Variables
bls_dkg.cpp File Reference
#include "bench.h"
#include "random.h"
#include "bls/bls_worker.h"
Include dependency graph for bls_dkg.cpp:

Go to the source code of this file.

Classes

struct  Member
 
struct  DKG
 

Macros

#define BENCH_BuildQuorumVerificationVectors(name, quorumSize, parallel, num_iters_for_one_second)
 
#define BENCH_VerifyContributionShares(name, quorumSize, invalidCount, parallel, aggregated, num_iters_for_one_second)
 

Functions

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
 

Variables

CBLSWorker blsWorker
 
std::shared_ptr< DKGdkg10
 
std::shared_ptr< DKGdkg100
 
std::shared_ptr< DKGdkg400
 
 false
 
 true
 

Macro Definition Documentation

◆ BENCH_BuildQuorumVerificationVectors

#define BENCH_BuildQuorumVerificationVectors (   name,
  quorumSize,
  parallel,
  num_iters_for_one_second 
)
Value:
static void BLSDKG_BuildQuorumVerificationVectors_##name##_##quorumSize(benchmark::State& state) \
{ \
InitIfNeeded(); \
dkg##quorumSize->Bench_BuildQuorumVerificationVectors(state, parallel); \
} \
BENCHMARK(BLSDKG_BuildQuorumVerificationVectors_##name##_##quorumSize, num_iters_for_one_second)
const char * name
Definition: rest.cpp:37
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a Optional result.
Definition: system.h:65

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:
static void BLSDKG_VerifyContributionShares_##name##_##quorumSize(benchmark::State& state) \
{ \
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.

Function Documentation

◆ 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  ,
 
)

◆ BENCH_VerifyContributionShares() [1/6]

BENCH_VerifyContributionShares ( aggregated  ,
100  ,
,
false  ,
true  ,
 
)

◆ BENCH_VerifyContributionShares() [2/6]

BENCH_VerifyContributionShares ( parallel  ,
10  ,
,
true  ,
false  ,
200   
)

◆ BENCH_VerifyContributionShares() [3/6]

BENCH_VerifyContributionShares ( parallel  ,
400  ,
,
true  ,
false  ,
 
)

◆ BENCH_VerifyContributionShares() [4/6]

BENCH_VerifyContributionShares ( parallel_aggregated  ,
100  ,
,
true  ,
true  ,
 
)

◆ BENCH_VerifyContributionShares() [5/6]

BENCH_VerifyContributionShares ( simple  ,
10  ,
,
false  ,
false  ,
70   
)

◆ BENCH_VerifyContributionShares() [6/6]

BENCH_VerifyContributionShares ( simple  ,
400  ,
,
false  ,
false  ,
 
)

◆ CleanupBLSDkgTests()

void CleanupBLSDkgTests ( )

Definition at line 133 of file bls_dkg.cpp.

◆ InitIfNeeded()

void InitIfNeeded ( )

Definition at line 120 of file bls_dkg.cpp.

Variable Documentation

◆ blsWorker

CBLSWorker blsWorker
extern

Definition at line 13 of file bls.cpp.

◆ dkg10

std::shared_ptr<DKG> dkg10

Definition at line 116 of file bls_dkg.cpp.

◆ dkg100

std::shared_ptr<DKG> dkg100

Definition at line 117 of file bls_dkg.cpp.

◆ dkg400

std::shared_ptr<DKG> dkg400

Definition at line 118 of file bls_dkg.cpp.

◆ false

false

Definition at line 151 of file bls_dkg.cpp.

◆ true

true

Definition at line 153 of file bls_dkg.cpp.