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 C# multi-dimension array versions of the Benchstones microbenchmarks #2054

Merged

Conversation

BruceForstall
Copy link
Member

The current versions of the Benchstones microbenchmarks use C#
"jagged" arrays for multi-dimension arrays. This adds a set of all the
BenchF/BenchI benchmarks that use multi-dimensions arrays, using C#
true multi-dimension array access. The code is exactly the same as the
non-multi-dimension versions except for array creation and indexing
expressions.

This will help track and compare multi-dimension versus jagged array
performance.

The current versions of the Benchstones microbenchmarks use C#
"jagged" arrays for multi-dimension arrays. This adds a set of all the
BenchF/BenchI benchmarks that use multi-dimensions arrays, using C#
true multi-dimension array access. The code is exactly the same as the
non-multi-dimension versions except for array creation and indexing
expressions.

This will help track and compare multi-dimension versus jagged array
performance.
@BruceForstall
Copy link
Member Author

Related: dotnet/runtime#60192

@BruceForstall
Copy link
Member Author

@DrewScoggins PTAL

@BruceForstall
Copy link
Member Author

@billwert

@billwert billwert merged commit c7a07a0 into dotnet:main Oct 9, 2021
@BruceForstall BruceForstall deleted the AddMultiDimensionArrayBenchstonesTests branch October 11, 2021 16:46
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.

2 participants