-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests] Add perf test for calling Marshal.AllocHGlobal/FreeHGlobal. (#…
…12696) Also add a 'SupportedOSPlatformVersion' value to the .NET perftest project file, to cope with recent changes in our .NET support. Ref: dotnet/runtime#58939.
- Loading branch information
1 parent
9a7000f
commit f75a7b5
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f75a7b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ [CI Build] Tests failed on Build ❌
Tests failed on Build.
API diff
✅ API Diff from stable
View API diff
API & Generator diff
✅ API Diff (from PR only) (no change)
✅ Generator Diff (only version changes)
Packages generated
View packages
Test results
2 tests failed, 241 tests passed.
Failed tests
No test log file was produced)
Pipeline on Agent XAMBOT-1037.BigSur'
[tests] Add perf test for calling Marshal.AllocHGlobal/FreeHGlobal. (#12696)
f75a7b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.
Pipeline on Agent
[tests] Add perf test for calling Marshal.AllocHGlobal/FreeHGlobal. (#12696)
f75a7b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Tests passed on macOS M1 - Mac Big Sur (11.5) ✅
Tests passed
All tests on macOS X M1 - Mac Big Sur (11.5) passed.
Pipeline on Agent
[tests] Add perf test for calling Marshal.AllocHGlobal/FreeHGlobal. (#12696)
f75a7b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.
Pipeline on Agent
[tests] Add perf test for calling Marshal.AllocHGlobal/FreeHGlobal. (#12696)
f75a7b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Tests passed on macOS Mac Mojave (10.14) ✅
Tests passed
All tests on macOS X Mac Mojave (10.14) passed.
Pipeline on Agent
[tests] Add perf test for calling Marshal.AllocHGlobal/FreeHGlobal. (#12696)