The best comparison that I am aware of is The Computer Language Benchmarks Game.
It compares speed, memory use and source code size for (currently) 10 benchmarks across a large number of programming languages. The implementations of the benchmarks are user-submitted and there are continuous improvements, so the standings shift around somewhat.
The comparison is currently openjdk vs C# .NET Core.
Currently it is close, but .NET Core is slightly faster on most benchmarks.