Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add microbenchmark for core UnmanagedMemoryStream scenario #3435

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Oct 21, 2023

jozkee
jozkee previously approved these changes Jan 29, 2024
[GlobalSetup]
public void Setup()
{
buffer = (byte*)Marshal.AllocCoTaskMem(Length);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering why you chose this over AllocHGlobal?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No particular reason. Either of these two would work just fine for this test.

@cincuranet cincuranet merged commit 405d296 into dotnet:main Jan 30, 2024
29 of 33 checks passed
@cincuranet
Copy link
Contributor

Failures are unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants