aboutsummaryrefslogtreecommitdiff
path: root/tests/performance_tests/main.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-08-23 14:03:09 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-08-23 14:03:09 -0500
commitfa7cdd642074adb5899362aefcced4505d75f681 (patch)
tree78381c86a73e46cc265d58dd9ff770fd56a1ec99 /tests/performance_tests/main.cpp
parent510dbf3329ae51bbc6af49a3ef10d1a25afabf8a (diff)
parentd2e26c23f3caa7928c46c3a6bded85fdc1a68cb3 (diff)
downloadmonzero-core-fa7cdd642074adb5899362aefcced4505d75f681.tar.gz
monzero-core-fa7cdd642074adb5899362aefcced4505d75f681.tar.xz
monzero-core-fa7cdd642074adb5899362aefcced4505d75f681.zip
Merge pull request #3999
d2e26c2 add and use constant time 32 byte equality function (moneromooo-monero)
Diffstat (limited to 'tests/performance_tests/main.cpp')
-rw-r--r--tests/performance_tests/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/performance_tests/main.cpp b/tests/performance_tests/main.cpp
index bc3622ea8..1733e3409 100644
--- a/tests/performance_tests/main.cpp
+++ b/tests/performance_tests/main.cpp
@@ -51,6 +51,7 @@
#include "sc_reduce32.h"
#include "cn_fast_hash.h"
#include "rct_mlsag.h"
+#include "equality.h"
namespace po = boost::program_options;
@@ -151,6 +152,11 @@ 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_PERFORMANCE2(filter, test_equality, memcmp32, true);
+ TEST_PERFORMANCE2(filter, test_equality, memcmp32, false);
+ TEST_PERFORMANCE2(filter, test_equality, verify32, false);
+ TEST_PERFORMANCE2(filter, test_equality, verify32, false);
+
std::cout << "Tests finished. Elapsed time: " << timer.elapsed_ms() / 1000 << " sec" << std::endl;
return 0;