performance_tests: add RingCT MLSAG gen/ver tests

This commit is contained in:
moneromooo-monero 2017-12-31 18:58:45 +00:00
parent 1aa10c4364
commit 8f4ce989c2
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -53,6 +53,7 @@
#include "rct_mlsag.h" #include "rct_mlsag.h"
#include "equality.h" #include "equality.h"
#include "range_proof.h" #include "range_proof.h"
#include "rct_mlsag.h"
namespace po = boost::program_options; namespace po = boost::program_options;
@ -160,6 +161,15 @@ int main(int argc, char** argv)
TEST_PERFORMANCE1(filter, test_range_proof, true); TEST_PERFORMANCE1(filter, test_range_proof, true);
TEST_PERFORMANCE1(filter, test_range_proof, false); TEST_PERFORMANCE1(filter, test_range_proof, false);
TEST_PERFORMANCE3(filter, test_ringct_mlsag, 1, 3, false);
TEST_PERFORMANCE3(filter, test_ringct_mlsag, 1, 5, false);
TEST_PERFORMANCE3(filter, test_ringct_mlsag, 1, 10, false);
TEST_PERFORMANCE3(filter, test_ringct_mlsag, 1, 100, false);
TEST_PERFORMANCE3(filter, test_ringct_mlsag, 1, 3, true);
TEST_PERFORMANCE3(filter, test_ringct_mlsag, 1, 5, true);
TEST_PERFORMANCE3(filter, test_ringct_mlsag, 1, 10, true);
TEST_PERFORMANCE3(filter, test_ringct_mlsag, 1, 100, true);
std::cout << "Tests finished. Elapsed time: " << timer.elapsed_ms() / 1000 << " sec" << std::endl; std::cout << "Tests finished. Elapsed time: " << timer.elapsed_ms() / 1000 << " sec" << std::endl;
return 0; return 0;