-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
why mono runtime's performance is lowwer than java(or dotnetcore) runtime?can you(or we) optimize mono runtime #6719
Comments
It depends on the workload. Please post a specific (minimal) program where you experience performance issues, so we can look into it. |
please see this |
please reopen this issue |
@lewurm please reopen this issue |
I did a quick look at the bf2 benchmark, and I saw the following: Kotlin does a dry warming run, so it doesn't include JIT time: https://github.com/kostya/benchmarks/blob/master/brainfuck2/bf2.kt#L89 The C# version does not: And the build and run file: On Mono, it uses Edit: |
I'd say the benchmarks are rather incorrectly setup and don't reflect real stats between different runtimes. It also uses |
On my machine using mcs:
With csc /optimize+:
Then I looked at the IL generated by that code, and noticed that the hot functions in the code are not inlined at all:
So I applied this patch and the runtime was cut down to:
Even without a warm run. |
Using the same code:
I get this with .netcore on the same machine for comparison. |
And my assumption was right, doing -O=all does increase runtime of the app:
|
why mono runtime's performance is slower than java(or dotnetcore) runtime?can you(or we) optimize mono runtime
The text was updated successfully, but these errors were encountered: