From de09eec49b336908a6182bf5d05bbccb8a746772 Mon Sep 17 00:00:00 2001 From: syntheticpp Date: Sat, 29 Oct 2005 10:21:46 +0000 Subject: [PATCH] find loki include files without a correct sreach pathand some small fixes git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@331 7ec92016-0320-0410-acc4-a06ded1c099a --- test/SmallObj/AllocatorBench.cpp | 15 +++++++-------- test/SmallObj/SmallObjBench.cpp | 5 ++++- test/SmallObj/SmallSingleton.cpp | 7 +++++-- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/test/SmallObj/AllocatorBench.cpp b/test/SmallObj/AllocatorBench.cpp index 5184d71..bb0cfa3 100755 --- a/test/SmallObj/AllocatorBench.cpp +++ b/test/SmallObj/AllocatorBench.cpp @@ -1,4 +1,3 @@ -#if 0 //////////////////////////////////////////////////////////////////////////////// // The Loki Library // Copyright (c) 2005 Peter Kümmel @@ -20,7 +19,7 @@ // Uncomment this to test new [] and delete []. #define LOKI_SMALL_OBJECT_USE_NEW_ARRAY -#include "SmallObj.h" +#include "../../include/loki/SmallObj.h" #include "timer.h" #include @@ -240,7 +239,7 @@ void testSize() typedef BoostPoolNew D; #endif - cout << "Small-Object Benchmark Tests \n" << endl; + cout << "Allocator Benchmark Tests \n" << endl; cout << "A = global new and delete \tsizeof(A) =" << sizeof(A) << endl; cout << "B = Loki::SmallObject \tsizeof(B) =" << sizeof(B) << endl; cout << "C = Loki::SmallValueObject\tsizeof(C) =" << sizeof(C) << endl; @@ -280,10 +279,11 @@ int main() const int loop = 1000*1000; - //testSize<8,loop>(); + testSize<4,loop>(); + testSize<8,loop>(); + testSize<16,loop>(); + testSize<32,loop>(); testSize<64,loop>(); - //testSize<256,loop>(); - //testSize<1024,loop>(); system("PAUSE"); @@ -294,5 +294,4 @@ int main() // ---------------------------------------------------------------------------- // $Log: - -#endif + diff --git a/test/SmallObj/SmallObjBench.cpp b/test/SmallObj/SmallObjBench.cpp index 01f192d..90195c2 100755 --- a/test/SmallObj/SmallObjBench.cpp +++ b/test/SmallObj/SmallObjBench.cpp @@ -19,7 +19,7 @@ // Uncomment this to test new [] and delete []. #define LOKI_SMALL_OBJECT_USE_NEW_ARRAY -#include "SmallObj.h" +#include "../../include/loki/SmallObj.h" #include "timer.h" #include @@ -394,6 +394,9 @@ int main() // ---------------------------------------------------------------------------- // $Log$ +// Revision 1.11 2005/10/29 10:21:46 syntheticpp +// find loki include files without a correct sreach pathand some small fixes +// // Revision 1.10 2005/10/27 19:10:32 syntheticpp // gcc fix // diff --git a/test/SmallObj/SmallSingleton.cpp b/test/SmallObj/SmallSingleton.cpp index c6859f9..65a677a 100644 --- a/test/SmallObj/SmallSingleton.cpp +++ b/test/SmallObj/SmallSingleton.cpp @@ -13,8 +13,8 @@ // $Header$ -#include "SmallObj.h" -#include "Singleton.h" +#include "../../include/loki/SmallObj.h" +#include "../../include/loki/Singleton.h" #include @@ -172,6 +172,9 @@ int main() // ---------------------------------------------------------------------------- // $Log$ +// Revision 1.2 2005/10/29 10:21:46 syntheticpp +// find loki include files without a correct sreach pathand some small fixes +// // Revision 1.1 2005/10/14 18:48:10 rich_sposato // Adding SmallSingleton test project to CVS. //