_benchmode
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
#define LONGER 3
|
||||
#define CHUNK_TIMES 100
|
||||
#else
|
||||
#define LONGER 10
|
||||
#define LONGER 10*10
|
||||
#define CHUNK_TIMES 1000
|
||||
#endif
|
||||
#define TIMES (10000*LONGER)
|
||||
@@ -246,9 +246,9 @@ void MyScript::OnStart()
|
||||
if (scriptTwo == nullptr)
|
||||
return;
|
||||
|
||||
bool otherTests = false;
|
||||
bool arrayTests = false;
|
||||
bool asRefTests = false;
|
||||
bool otherTests = true;
|
||||
bool arrayTests = true;
|
||||
bool asRefTests = true;
|
||||
|
||||
Array<uint64> results(TIMES);
|
||||
auto CyclesToSeconds = 1.0 / static_cast<double>(Platform::GetClockFrequency());
|
||||
|
||||
@@ -35,8 +35,8 @@ public class MyScriptTwo : MyScript2
|
||||
|
||||
public override void GetStats(ref long allocations, ref long deallocations)
|
||||
{
|
||||
allocations = ManagedHandle.Allocations;
|
||||
deallocations = ManagedHandle.Deallocations;
|
||||
//allocations = ManagedHandle.Allocations;
|
||||
//deallocations = ManagedHandle.Deallocations;
|
||||
}
|
||||
|
||||
public override void SimpleCall() {}
|
||||
|
||||
Reference in New Issue
Block a user