Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 199 [details]
The struct and class creation benchmark
Description of Problem:
A simple benchmark testing the use of struct and class objects at high frequency is 20% - 50% slower in 2.10.x vs 2.6.x. Struct creation has become more expensive in 2.10.x.
Steps to reproduce the problem:
1. Run enclosed simple benchmark on 2.6.x repeatedly
2. Run enclosed simple benchmark on 2.10.x repeatedly
benchmark 20 - 50% slower on 2.10.x, depending on platform.
benchmark the same or better on 2.10.x
How often does this happen?
See enclosed test program
For me, the 'struct' case is exactly the same for 2.6 and 2.10/HEAD on linux, the 'class' case is a bit slower, probably due to some GC changes.
Same here, struct performance is the same.
Two things to note, boehm perf on OSX regressed between 2.6 and 2.10 since we disabled parallel marking as it's buggy.
OSX boehm allocation performance is pretty bad since it won't use managed allocators. This limitation won't be changed since all our efforts are not on sgen.