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
This commit is contained in:
parent
0fbe1f7258
commit
de09eec49b
3 changed files with 16 additions and 11 deletions
|
@ -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 <iostream>
|
||||
|
@ -240,7 +239,7 @@ void testSize()
|
|||
typedef BoostPoolNew<Size> 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");
|
||||
|
@ -295,4 +295,3 @@ int main()
|
|||
|
||||
// $Log:
|
||||
|
||||
#endif
|
||||
|
|
|
@ -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 <iostream>
|
||||
|
@ -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
|
||||
//
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
// $Header$
|
||||
|
||||
|
||||
#include "SmallObj.h"
|
||||
#include "Singleton.h"
|
||||
#include "../../include/loki/SmallObj.h"
|
||||
#include "../../include/loki/Singleton.h"
|
||||
#include <iostream>
|
||||
|
||||
|
||||
|
@ -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.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue