diff --git a/tests/perftest/ManagedRuntime.cs b/tests/perftest/ManagedRuntime.cs
new file mode 100644
index 000000000000..515318b46343
--- /dev/null
+++ b/tests/perftest/ManagedRuntime.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Runtime.InteropServices;
+
+using BenchmarkDotNet.Attributes;
+
+namespace PerfTest {
+
+ public class ManagedRuntime {
+ [Benchmark]
+ public void AllocHGlobal ()
+ {
+ Marshal.FreeHGlobal (Marshal.AllocHGlobal (1));
+ }
+ }
+}
diff --git a/tests/perftest/dotnet/perftest.csproj b/tests/perftest/dotnet/perftest.csproj
index 0f3787948feb..b8ae1bf3ba2f 100644
--- a/tests/perftest/dotnet/perftest.csproj
+++ b/tests/perftest/dotnet/perftest.csproj
@@ -7,6 +7,7 @@
--marshal-objectivec-exceptions:disable --registrar:static
None
true
+ 10.15