_benchmode

This commit is contained in:
2025-12-18 15:08:06 +02:00
parent e4cd76fdaf
commit d1c73d6c74
2 changed files with 6 additions and 6 deletions

View File

@@ -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());

View File

@@ -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() {}