calculate also speed-up factor

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@290 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2005-10-06 10:17:56 +00:00
parent 4e035929fd
commit 1eb831f009
2 changed files with 25 additions and 5 deletions

View file

@ -1,3 +1,15 @@
////////////////////////////////////////////////////////////////////////////////
// The Loki Library
// Copyright (c) 2005 Peter Kümmel
// Copyright (c) 2005 Richard Sposato
// Permission to use, copy, modify, distribute and sell this software for any
// purpose is hereby granted without fee, provided that the above copyright
// notice appear in all copies and that both that copyright notice and this
// permission notice appear in supporting documentation.
// The authors make no representations about the
// suitability of this software for any purpose. It is provided "as is"
// without express or implied warranty.
////////////////////////////////////////////////////////////////////////////////
//#define LOKI_CLASS_LEVEL_THREADING
//#define LOKI_OBJECT_LEVEL_THREADING
@ -151,6 +163,8 @@ int main()
int loop = 1000000
;
std::cout << "\n";
Timer t;
t.t100 = 0;
@ -177,9 +191,9 @@ int main()
}
t.t100 = 0;
t.t100 = run_new_delete(a,N,loop2,t,"new & delete A on array : ");
run_new_delete(b,N,loop2,t,"new & delete B on array : ");
run_new_delete(c,N,loop2,t,"new & delete C on array : ");
t.t100 = run_new_delete(a,N,loop2,t,"new & del. A on array: ");
run_new_delete(b,N,loop2,t,"new & del. B on array: ");
run_new_delete(c,N,loop2,t,"new & del. C on array: ");
cout << endl << endl;
// Loki::AllocatorSingleton<>::ClearExtraMemory();