2022-08-27 15:02:44 +00:00
|
|
|
/**********************************************************************
|
|
|
|
* Copyright (c) 2020 Andrew Poelstra *
|
|
|
|
* Distributed under the MIT software license, see the accompanying *
|
|
|
|
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2023-04-21 11:10:47 +02:00
|
|
|
#include "../include/secp256k1_bppp.h"
|
2022-08-27 15:02:44 +00:00
|
|
|
#include "util.h"
|
|
|
|
#include "bench.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
secp256k1_context* ctx;
|
2023-02-06 13:53:02 -08:00
|
|
|
} bench_bppp_data;
|
2022-08-27 15:02:44 +00:00
|
|
|
|
2023-02-06 13:53:02 -08:00
|
|
|
static void bench_bppp_setup(void* arg) {
|
2022-08-27 15:02:44 +00:00
|
|
|
(void) arg;
|
|
|
|
}
|
|
|
|
|
2023-02-06 13:53:02 -08:00
|
|
|
static void bench_bppp(void* arg, int iters) {
|
|
|
|
bench_bppp_data *data = (bench_bppp_data*)arg;
|
2022-08-27 15:02:44 +00:00
|
|
|
|
|
|
|
(void) data;
|
|
|
|
(void) iters;
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(void) {
|
2023-02-06 13:53:02 -08:00
|
|
|
bench_bppp_data data;
|
2022-08-27 15:02:44 +00:00
|
|
|
int iters = get_iters(32);
|
|
|
|
|
2023-07-18 08:10:59 +00:00
|
|
|
data.ctx = secp256k1_context_create(SECP256K1_CONTEXT_NONE);
|
2022-08-27 15:02:44 +00:00
|
|
|
|
2023-02-06 13:53:02 -08:00
|
|
|
run_benchmark("bppp_verify_bit", bench_bppp, bench_bppp_setup, NULL, &data, 10, iters);
|
2022-08-27 15:02:44 +00:00
|
|
|
|
|
|
|
secp256k1_context_destroy(data.ctx);
|
|
|
|
return 0;
|
|
|
|
}
|