Skip to content

Commit

Permalink
Adding get delegate benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
manodasanW committed Jan 20, 2022
1 parent 5119b46 commit 6bcfc04
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Benchmarks/ReflectionPerf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,18 @@ public void SetNullableIntDelegate()
public object GetNullableIntDelegate()
{
return instance.BoxedDelegate as ProvideInt;
}

[Benchmark]
public object GetNewIntDelegate()
{
return instance.NewIntDelegate;
}

[Benchmark]
public object GetExistingIntDelegate()
{
return instance.ExistingIntDelegate;
}

[Benchmark]
Expand Down

0 comments on commit 6bcfc04

Please sign in to comment.