aboutsummaryrefslogtreecommitdiff
path: root/tests/performance_tests/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/performance_tests/main.cpp')
-rw-r--r--tests/performance_tests/main.cpp16
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;