From 429e92983a6d205f16a500a148bb01dd14e3c87d Mon Sep 17 00:00:00 2001 From: mutouyun Date: Mon, 21 Jan 2019 12:28:29 +0800 Subject: [PATCH] adjust test case --- test/test_mem.cpp | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/test/test_mem.cpp b/test/test_mem.cpp index 7d9194d..fa5ce31 100644 --- a/test/test_mem.cpp +++ b/test/test_mem.cpp @@ -21,7 +21,6 @@ class Unit : public TestSuite { private slots: void initTestCase(); - void cleanupTestCase(); void test_alloc_free(); void test_linear(); @@ -89,10 +88,6 @@ void Unit::initTestCase() { } } -void Unit::cleanupTestCase() { - sizes__.clear(); -} - template void benchmark_alloc() { std::cout << std::endl << type_name() << std::endl; @@ -112,7 +107,6 @@ void benchmark_alloc() { void Unit::test_alloc_free() { benchmark_alloc(); benchmark_alloc(); - benchmark_alloc(); } template @@ -177,17 +171,14 @@ struct test_performance { }; void Unit::test_linear() { - test_performance::start(); - test_performance::start(); - test_performance::start(); + test_performance::start(); + test_performance::start(); - test_performance::start(); - test_performance::start(); - test_performance::start(); + test_performance::start(); + test_performance::start(); - test_performance::start(); - test_performance::start(); - test_performance::start(); + test_performance::start(); + test_performance::start(); } } // internal-linkage