Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
bench_impl.h File Reference
#include "../include/secp256k1_ecdh.h"
Include dependency graph for bench_impl.h:

Go to the source code of this file.

Classes

struct  bench_ecdh_data
 

Functions

void run_ecdh_bench (int iters, int argc, char **argv)
 

Function Documentation

◆ run_ecdh_bench()

void run_ecdh_bench ( int iters,
int argc,
char ** argv )

Definition at line 45 of file bench_impl.h.

45 {
46 bench_ecdh_data data;
47 int d = argc == 1;
48
49 /* create a context with no capabilities */
51
52 if (d || have_flag(argc, argv, "ecdh")) run_benchmark("ecdh", bench_ecdh, bench_ecdh_setup, NULL, &data, 10, iters);
53
55}
int have_flag(int argc, char **argv, char *flag)
Definition bench.h:116
void run_benchmark(char *name, void(*benchmark)(void *, int), void(*setup)(void *), void(*teardown)(void *, int), void *data, int count, int iter)
Definition bench.h:82
char ** argv
SECP256K1_API void secp256k1_context_destroy(secp256k1_context *ctx) SECP256K1_ARG_NONNULL(1)
Definition secp256k1.c:146
SECP256K1_API secp256k1_context * secp256k1_context_create(unsigned int flags) SECP256K1_WARN_UNUSED_RESULT
Definition secp256k1.c:107
#define SECP256K1_FLAGS_TYPE_CONTEXT
Definition secp256k1.h:185
CK_ULONG d
Here is the call graph for this function:
Here is the caller graph for this function: