diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-01-05 16:30:24 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-11 13:37:22 +0000 |
commit | 112f32f068e2e6d0b8e713ccf49090b73e542b5d (patch) | |
tree | 2c6cf07aa8001c63f38090f0a43ffd5b24b4e019 /tests/performance_tests/main.cpp | |
parent | performance_tests: add bulletproofs (diff) | |
download | monero-112f32f068e2e6d0b8e713ccf49090b73e542b5d.tar.xz |
performance_tests: add crypto ops
Diffstat (limited to 'tests/performance_tests/main.cpp')
-rw-r--r-- | tests/performance_tests/main.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/performance_tests/main.cpp b/tests/performance_tests/main.cpp index 7fd1873b5..5b7a30f96 100644 --- a/tests/performance_tests/main.cpp +++ b/tests/performance_tests/main.cpp @@ -55,6 +55,7 @@ #include "range_proof.h" #include "rct_mlsag.h" #include "bulletproof.h" +#include "crypto_ops.h" namespace po = boost::program_options; @@ -180,6 +181,21 @@ int main(int argc, char** argv) TEST_PERFORMANCE3(filter, test_ringct_mlsag, 1, 10, true); TEST_PERFORMANCE3(filter, test_ringct_mlsag, 1, 100, true); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_sc_add); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_sc_sub); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_sc_mul); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_ge_add_raw); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_ge_add_p3_p3); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_addKeys); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_scalarmultBase); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_scalarmultKey); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_ge_double_scalarmult_base_vartime); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_ge_double_scalarmult_precomp_vartime); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_ge_double_scalarmult_precomp_vartime2); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_addKeys2); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_addKeys3); + TEST_PERFORMANCE1(filter, test_crypto_ops, op_addKeys3_2); + std::cout << "Tests finished. Elapsed time: " << timer.elapsed_ms() / 1000 << " sec" << std::endl; return 0; |