From 8ad9f2aaf4e9e51c3f8b5e24aec56dae4e49e983 Mon Sep 17 00:00:00 2001 From: Daniel Schemmel Date: Wed, 5 Jul 2023 14:11:42 +0000 Subject: remove timings from kdalloc tests --- unittests/KDAlloc/randomtest.cpp | 11 ----------- unittests/KDAlloc/stacktest.cpp | 11 ----------- 2 files changed, 22 deletions(-) (limited to 'unittests') 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 -#include #include #include #include @@ -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(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 -#include #include #include #include @@ -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(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: " -- cgit 1.4.1