performance_tests: add tests for sc_reduce32 and cn_fast_hash

This commit is contained in:
moneromooo-monero 2017-02-10 18:45:18 +00:00
parent 962c72b624
commit cadada2d65
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 116 additions and 1 deletions

View file

@ -1,4 +1,4 @@
// Copyright (c) 2014-2016, The Monero Project
// Copyright (c) 2014-2017, The Monero Project
//
// All rights reserved.
//
@ -43,6 +43,8 @@
#include "generate_key_image_helper.h"
#include "generate_keypair.h"
#include "is_out_to_acc.h"
#include "sc_reduce32.h"
#include "cn_fast_hash.h"
int main(int argc, char** argv)
{
@ -105,8 +107,11 @@ int main(int argc, char** argv)
TEST_PERFORMANCE0(test_derive_secret_key);
TEST_PERFORMANCE0(test_ge_frombytes_vartime);
TEST_PERFORMANCE0(test_generate_keypair);
TEST_PERFORMANCE0(test_sc_reduce32);
TEST_PERFORMANCE0(test_cn_slow_hash);
TEST_PERFORMANCE1(test_cn_fast_hash, 32);
TEST_PERFORMANCE1(test_cn_fast_hash, 16384);
std::cout << "Tests finished. Elapsed time: " << timer.elapsed_ms() / 1000 << " sec" << std::endl;