diff options
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/KDAlloc/randomtest.cpp | 11 | ||||
-rw-r--r-- | unittests/KDAlloc/stacktest.cpp | 11 |
2 files changed, 0 insertions, 22 deletions
diff --git a/unittests/KDAlloc/randomtest.cpp b/unittests/KDAlloc/randomtest.cpp index c926fb84..1216df1a 100644 --- a/unittests/KDAlloc/randomtest.cpp +++ b/unittests/KDAlloc/randomtest.cpp @@ -15,7 +15,6 @@ #endif #include <cassert> -#include <chrono> #include <cmath> #include <cstdint> #include <cstdlib> @@ -126,19 +125,9 @@ public: } // namespace void random_test() { - auto start = std::chrono::steady_clock::now(); - RandomTest tester; tester.run(1'000'000); - auto stop = std::chrono::steady_clock::now(); - std::cout << std::dec - << std::chrono::duration_cast<std::chrono::milliseconds>(stop - - start) - .count() - << " ms\n"; - std::cout << "\n"; - std::cout << "Allocations: " << tester.allocation_count << "\n"; std::cout << "Deallocations: " << tester.deallocation_count << "\n"; std::cout << "Maximum concurrent allocations: " diff --git a/unittests/KDAlloc/stacktest.cpp b/unittests/KDAlloc/stacktest.cpp index e2251b76..614a0379 100644 --- a/unittests/KDAlloc/stacktest.cpp +++ b/unittests/KDAlloc/stacktest.cpp @@ -15,7 +15,6 @@ #endif #include <cassert> -#include <chrono> #include <cmath> #include <cstdint> #include <cstdlib> @@ -111,19 +110,9 @@ public: } // namespace void stack_test() { - auto start = std::chrono::steady_clock::now(); - RandomTest tester; tester.run(10'000'000); - auto stop = std::chrono::steady_clock::now(); - std::cout << std::dec - << std::chrono::duration_cast<std::chrono::milliseconds>(stop - - start) - .count() - << " ms\n"; - std::cout << "\n"; - std::cout << "Allocations: " << tester.allocation_count << "\n"; std::cout << "Deallocations: " << tester.deallocation_count << "\n"; std::cout << "Maximum concurrent allocations: " |