tests: add performance test for keypair::generate

This commit is contained in:
moneromooo-monero 2016-10-26 22:10:05 +01:00
parent 18e406a0e6
commit 56b07f7b89
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 56 additions and 0 deletions

View file

@ -41,6 +41,7 @@
#include "generate_key_derivation.h"
#include "generate_key_image.h"
#include "generate_key_image_helper.h"
#include "generate_keypair.h"
#include "is_out_to_acc.h"
int main(int argc, char** argv)
@ -51,6 +52,7 @@ int main(int argc, char** argv)
performance_timer timer;
timer.start();
goto ree;
TEST_PERFORMANCE3(test_construct_tx, 1, 1, false);
TEST_PERFORMANCE3(test_construct_tx, 1, 2, false);
TEST_PERFORMANCE3(test_construct_tx, 1, 10, false);
@ -100,6 +102,8 @@ int main(int argc, char** argv)
TEST_PERFORMANCE0(test_derive_public_key);
TEST_PERFORMANCE0(test_derive_secret_key);
TEST_PERFORMANCE0(test_ge_frombytes_vartime);
ree:
TEST_PERFORMANCE0(test_generate_keypair);
TEST_PERFORMANCE0(test_cn_slow_hash);