[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 1339482 4/4: Speed up a routine test
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 1339482 4/4: Speed up a routine test |
Date: |
Thu, 5 Apr 2018 08:16:54 -0400 (EDT) |
branch: master
commit 13394827c675905e47077683f253ffaeaacdc476
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Speed up a routine test
Skip cli timing test for _GLIBCXX_DEBUG because it takes too long for
the little insight it provides. This command:
make cli_tests build_type=safestdlib
took about 21 s before this change, and 16 s after.
---
main_cli.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/main_cli.cpp b/main_cli.cpp
index 8a0367e..c42c8bc 100644
--- a/main_cli.cpp
+++ b/main_cli.cpp
@@ -134,11 +134,15 @@ void self_test()
;
}
+#if defined _GLIBCXX_DEBUG
+ std::cout << "Timing test skipped: takes too long in debug mode " <<
std::endl;
+#else // !defined _GLIBCXX_DEBUG
std::cout
<< "Test solve speed: "
<< TimeAnAliquot(std::bind(z, "CLI_selftest", IP), 0.1)
<< '\n'
;
+#endif // !defined _GLIBCXX_DEBUG
}
/// Run self-test repeatedly (intended for use with 'gprof').