Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
bench_ecmult.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "secp256k1.c"
#include "../include/secp256k1.h"
#include "util.h"
#include "hash_impl.h"
#include "field_impl.h"
#include "group_impl.h"
#include "scalar_impl.h"
#include "ecmult_impl.h"
#include "bench.h"
Include dependency graph for bench_ecmult.c:

Go to the source code of this file.

Classes

struct  bench_data

Macros

#define POINTS   32768

Functions

static void help (char **argv, int default_iters)
static void hash_into_offset (bench_data *data, size_t x)
static void bench_ecmult_teardown_helper (bench_data *data, size_t *seckey_offset, size_t *scalar_offset, size_t *scalar_gen_offset, int iters)
static void bench_ecmult_setup (void *arg)
static void bench_ecmult_gen (void *arg, int iters)
static void bench_ecmult_gen_teardown (void *arg, int iters)
static void bench_ecmult_const (void *arg, int iters)
static void bench_ecmult_const_teardown (void *arg, int iters)
static void bench_ecmult_const_xonly (void *arg, int iters)
static void bench_ecmult_const_xonly_teardown (void *arg, int iters)
static void bench_ecmult_1p (void *arg, int iters)
static void bench_ecmult_1p_teardown (void *arg, int iters)
static void bench_ecmult_0p_g (void *arg, int iters)
static void bench_ecmult_0p_g_teardown (void *arg, int iters)
static void bench_ecmult_1p_g (void *arg, int iters)
static void bench_ecmult_1p_g_teardown (void *arg, int iters)
static void run_ecmult_bench (bench_data *data, int iters)
static int bench_ecmult_multi_callback (secp256k1_scalar *sc, secp256k1_ge *ge, size_t idx, void *arg)
static void bench_ecmult_multi (void *arg, int iters)
static void bench_ecmult_multi_setup (void *arg)
static void bench_ecmult_multi_teardown (void *arg, int iters)
static void generate_scalar (uint32_t num, secp256k1_scalar *scalar)
static void run_ecmult_multi_bench (bench_data *data, size_t count, int includes_g, int num_iters)
int main (int argc, char **argv)

Macro Definition Documentation

◆ POINTS

#define POINTS   32768

Definition at line 20 of file bench_ecmult.c.

Function Documentation

◆ bench_ecmult_0p_g()

void bench_ecmult_0p_g ( void * arg,
int iters )
static

Definition at line 170 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_0p_g_teardown()

void bench_ecmult_0p_g_teardown ( void * arg,
int iters )
static

Definition at line 179 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_1p()

void bench_ecmult_1p ( void * arg,
int iters )
static

Definition at line 156 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_1p_g()

void bench_ecmult_1p_g ( void * arg,
int iters )
static

Definition at line 184 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_1p_g_teardown()

void bench_ecmult_1p_g_teardown ( void * arg,
int iters )
static

Definition at line 193 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_1p_teardown()

void bench_ecmult_1p_teardown ( void * arg,
int iters )
static

Definition at line 165 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_const()

void bench_ecmult_const ( void * arg,
int iters )
static

Definition at line 116 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_const_teardown()

void bench_ecmult_const_teardown ( void * arg,
int iters )
static

Definition at line 125 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_const_xonly()

void bench_ecmult_const_xonly ( void * arg,
int iters )
static

Definition at line 130 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_const_xonly_teardown()

void bench_ecmult_const_xonly_teardown ( void * arg,
int iters )
static

Definition at line 142 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_gen()

void bench_ecmult_gen ( void * arg,
int iters )
static

Definition at line 102 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_gen_teardown()

void bench_ecmult_gen_teardown ( void * arg,
int iters )
static

Definition at line 111 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_multi()

void bench_ecmult_multi ( void * arg,
int iters )
static

Definition at line 230 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_multi_callback()

int bench_ecmult_multi_callback ( secp256k1_scalar * sc,
secp256k1_ge * ge,
size_t idx,
void * arg )
static

Definition at line 217 of file bench_ecmult.c.

Here is the caller graph for this function:

◆ bench_ecmult_multi_setup()

void bench_ecmult_multi_setup ( void * arg)
static

Definition at line 245 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_multi_teardown()

void bench_ecmult_multi_teardown ( void * arg,
int iters )
static

Definition at line 250 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_setup()

void bench_ecmult_setup ( void * arg)
static

Definition at line 95 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bench_ecmult_teardown_helper()

void bench_ecmult_teardown_helper ( bench_data * data,
size_t * seckey_offset,
size_t * scalar_offset,
size_t * scalar_gen_offset,
int iters )
static

Definition at line 73 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generate_scalar()

void generate_scalar ( uint32_t num,
secp256k1_scalar * scalar )
static

Definition at line 262 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hash_into_offset()

void hash_into_offset ( bench_data * data,
size_t x )
static

Definition at line 66 of file bench_ecmult.c.

Here is the caller graph for this function:

◆ help()

void help ( char ** argv,
int default_iters )
static

Definition at line 22 of file bench_ecmult.c.

◆ main()

int main ( int argc,
char ** argv )

Definition at line 309 of file bench_ecmult.c.

Here is the call graph for this function:

◆ run_ecmult_bench()

void run_ecmult_bench ( bench_data * data,
int iters )
static

Definition at line 198 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_ecmult_multi_bench()

void run_ecmult_multi_bench ( bench_data * data,
size_t count,
int includes_g,
int num_iters )
static

Definition at line 278 of file bench_ecmult.c.

Here is the call graph for this function:
Here is the caller graph for this function: