aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-02 23:31:27 +0400
committerRiccardo Spagni <ric@spagni.net>2017-10-02 23:31:27 +0400
commita2041c98742154df4360831c99cfd9200a5620c2 (patch)
treefa60b4473dc71c807c444d77d1c37151a73e667e
parentMerge pull request #2515 (diff)
parentperformance_tests: adjust some iterations down a bit (diff)
downloadmonero-a2041c98742154df4360831c99cfd9200a5620c2.tar.xz
Merge pull request #2518
6a0fb301 performance_tests: adjust some iterations down a bit (moneromooo-monero)
-rw-r--r--tests/performance_tests/construct_tx.h2
-rw-r--r--tests/performance_tests/derive_secret_key.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/performance_tests/construct_tx.h b/tests/performance_tests/construct_tx.h
index 0610c86ed..90e4cf76e 100644
--- a/tests/performance_tests/construct_tx.h
+++ b/tests/performance_tests/construct_tx.h
@@ -43,7 +43,7 @@ class test_construct_tx : private multi_tx_test_base<a_in_count>
static_assert(0 < a_out_count, "out_count must be greater than 0");
public:
- static const size_t loop_count = (a_in_count + a_out_count < 100) ? 100 : 10;
+ static const size_t loop_count = (a_in_count + a_out_count < 10) ? (a_rct ? 10 : 200) : (a_in_count + a_out_count) < 100 ? (a_rct ? 5 : 25) : 5;
static const size_t in_count = a_in_count;
static const size_t out_count = a_out_count;
static const bool rct = a_rct;
diff --git a/tests/performance_tests/derive_secret_key.h b/tests/performance_tests/derive_secret_key.h
index 1a2945a77..f97deb974 100644
--- a/tests/performance_tests/derive_secret_key.h
+++ b/tests/performance_tests/derive_secret_key.h
@@ -38,7 +38,7 @@
class test_derive_secret_key : public single_tx_test_base
{
public:
- static const size_t loop_count = 1000000;
+ static const size_t loop_count = 10000;
bool init()
{