mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
20 lines
283 B
C++
20 lines
283 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
class Test {
|
|
public:
|
|
Test (int c) {count = c;}
|
|
// virtual ~Test() { }
|
|
int count;
|
|
};
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
RTIMING("NewDelete");
|
|
for (int i=0; i<=100000000; i++) {
|
|
Test *test = new Test(i);
|
|
delete test;
|
|
}
|
|
}
|
|
|