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