mirror of
https://github.com/godotengine/godot-benchmarks.git
synced 2025-12-31 09:49:13 +03:00
16 lines
276 B
C#
16 lines
276 B
C#
using System;
|
|
|
|
public partial class LambdaPerformance : Benchmark
|
|
{
|
|
const int ITERATIONS = 1_000_000;
|
|
Action lambda = () => { };
|
|
|
|
public void BenchmarkLambdaCall()
|
|
{
|
|
for(int i = 0; i < ITERATIONS; i++)
|
|
{
|
|
lambda();
|
|
}
|
|
}
|
|
}
|