Bitcoin Core  26.99.0
P2P Digital Currency
Classes | Functions
bench_internal.c File Reference
#include <stdio.h>
#include "secp256k1.c"
#include "../include/secp256k1.h"
#include "assumptions.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_internal.c:

Go to the source code of this file.

Classes

struct  bench_inv
 

Functions

static void help (int default_iters)
 
static void bench_setup (void *arg)
 
static void bench_scalar_add (void *arg, int iters)
 
static void bench_scalar_negate (void *arg, int iters)
 
static void bench_scalar_half (void *arg, int iters)
 
static void bench_scalar_mul (void *arg, int iters)
 
static void bench_scalar_split (void *arg, int iters)
 
static void bench_scalar_inverse (void *arg, int iters)
 
static void bench_scalar_inverse_var (void *arg, int iters)
 
static void bench_field_half (void *arg, int iters)
 
static void bench_field_normalize (void *arg, int iters)
 
static void bench_field_normalize_weak (void *arg, int iters)
 
static void bench_field_mul (void *arg, int iters)
 
static void bench_field_sqr (void *arg, int iters)
 
static void bench_field_inverse (void *arg, int iters)
 
static void bench_field_inverse_var (void *arg, int iters)
 
static void bench_field_sqrt (void *arg, int iters)
 
static void bench_field_is_square_var (void *arg, int iters)
 
static void bench_group_double_var (void *arg, int iters)
 
static void bench_group_add_var (void *arg, int iters)
 
static void bench_group_add_affine (void *arg, int iters)
 
static void bench_group_add_affine_var (void *arg, int iters)
 
static void bench_group_add_zinv_var (void *arg, int iters)
 
static void bench_group_to_affine_var (void *arg, int iters)
 
static void bench_ecmult_wnaf (void *arg, int iters)
 
static void bench_sha256 (void *arg, int iters)
 
static void bench_hmac_sha256 (void *arg, int iters)
 
static void bench_rfc6979_hmac_sha256 (void *arg, int iters)
 
static void bench_context (void *arg, int iters)
 
int main (int argc, char **argv)
 

Function Documentation

◆ bench_context()

static void bench_context ( void *  arg,
int  iters 
)
static

Definition at line 377 of file bench_internal.c.

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

◆ bench_ecmult_wnaf()

static void bench_ecmult_wnaf ( void *  arg,
int  iters 
)
static

Definition at line 330 of file bench_internal.c.

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

◆ bench_field_half()

static void bench_field_half ( void *  arg,
int  iters 
)
static

Definition at line 174 of file bench_internal.c.

Here is the caller graph for this function:

◆ bench_field_inverse()

static void bench_field_inverse ( void *  arg,
int  iters 
)
static

Definition at line 219 of file bench_internal.c.

Here is the caller graph for this function:

◆ bench_field_inverse_var()

static void bench_field_inverse_var ( void *  arg,
int  iters 
)
static

Definition at line 229 of file bench_internal.c.

Here is the caller graph for this function:

◆ bench_field_is_square_var()

static void bench_field_is_square_var ( void *  arg,
int  iters 
)
static

Definition at line 252 of file bench_internal.c.

Here is the caller graph for this function:

◆ bench_field_mul()

static void bench_field_mul ( void *  arg,
int  iters 
)
static

Definition at line 201 of file bench_internal.c.

Here is the caller graph for this function:

◆ bench_field_normalize()

static void bench_field_normalize ( void *  arg,
int  iters 
)
static

Definition at line 183 of file bench_internal.c.

Here is the caller graph for this function:

◆ bench_field_normalize_weak()

static void bench_field_normalize_weak ( void *  arg,
int  iters 
)
static

Definition at line 192 of file bench_internal.c.

Here is the caller graph for this function:

◆ bench_field_sqr()

static void bench_field_sqr ( void *  arg,
int  iters 
)
static

Definition at line 210 of file bench_internal.c.

Here is the caller graph for this function:

◆ bench_field_sqrt()

static void bench_field_sqrt ( void *  arg,
int  iters 
)
static

Definition at line 239 of file bench_internal.c.

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

◆ bench_group_add_affine()

static void bench_group_add_affine ( void *  arg,
int  iters 
)
static

Definition at line 283 of file bench_internal.c.

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

◆ bench_group_add_affine_var()

static void bench_group_add_affine_var ( void *  arg,
int  iters 
)
static

Definition at line 292 of file bench_internal.c.

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

◆ bench_group_add_var()

static void bench_group_add_var ( void *  arg,
int  iters 
)
static

Definition at line 274 of file bench_internal.c.

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

◆ bench_group_add_zinv_var()

static void bench_group_add_zinv_var ( void *  arg,
int  iters 
)
static

Definition at line 301 of file bench_internal.c.

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

◆ bench_group_double_var()

static void bench_group_double_var ( void *  arg,
int  iters 
)
static

Definition at line 265 of file bench_internal.c.

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

◆ bench_group_to_affine_var()

static void bench_group_to_affine_var ( void *  arg,
int  iters 
)
static

Definition at line 310 of file bench_internal.c.

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

◆ bench_hmac_sha256()

static void bench_hmac_sha256 ( void *  arg,
int  iters 
)
static

Definition at line 354 of file bench_internal.c.

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

◆ bench_rfc6979_hmac_sha256()

static void bench_rfc6979_hmac_sha256 ( void *  arg,
int  iters 
)
static

Definition at line 366 of file bench_internal.c.

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

◆ bench_scalar_add()

static void bench_scalar_add ( void *  arg,
int  iters 
)
static

Definition at line 100 of file bench_internal.c.

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

◆ bench_scalar_half()

static void bench_scalar_half ( void *  arg,
int  iters 
)
static

Definition at line 119 of file bench_internal.c.

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

◆ bench_scalar_inverse()

static void bench_scalar_inverse ( void *  arg,
int  iters 
)
static

Definition at line 152 of file bench_internal.c.

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

◆ bench_scalar_inverse_var()

static void bench_scalar_inverse_var ( void *  arg,
int  iters 
)
static

Definition at line 163 of file bench_internal.c.

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

◆ bench_scalar_mul()

static void bench_scalar_mul ( void *  arg,
int  iters 
)
static

Definition at line 131 of file bench_internal.c.

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

◆ bench_scalar_negate()

static void bench_scalar_negate ( void *  arg,
int  iters 
)
static

Definition at line 110 of file bench_internal.c.

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

◆ bench_scalar_split()

static void bench_scalar_split ( void *  arg,
int  iters 
)
static

Definition at line 140 of file bench_internal.c.

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

◆ bench_setup()

static void bench_setup ( void *  arg)
static

Definition at line 48 of file bench_internal.c.

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

◆ bench_sha256()

static void bench_sha256 ( void *  arg,
int  iters 
)
static

Definition at line 342 of file bench_internal.c.

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

◆ help()

static void help ( int  default_iters)
static

Definition at line 20 of file bench_internal.c.

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

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 385 of file bench_internal.c.

Here is the call graph for this function: