Merge bench_ecdh into bench

This commit is contained in:
Pieter Wuille
2021-10-17 12:10:23 -04:00
parent 2a7be678a6
commit 855e18d8a8
5 changed files with 15 additions and 20 deletions

View File

@@ -76,6 +76,10 @@ static void bench_sign_run(void* arg, int iters) {
}
}
#ifdef ENABLE_MODULE_ECDH
# include "modules/ecdh/bench_impl.h"
#endif
int main(void) {
int i;
secp256k1_pubkey pubkey;
@@ -112,5 +116,10 @@ int main(void) {
secp256k1_context_destroy(data.ctx);
#ifdef ENABLE_MODULE_ECDH
/* ECDH benchmarks */
run_ecdh_bench(iters);
#endif
return 0;
}