brucethemoose / Minecraft-Performance-Flags-Benchmarks

Sane, Benchmarked Java Flags and Tweaks for Minecraft
MIT License
1.33k stars 29 forks source link

Why is Java 17 recommended over 8 when 8 consistenly performs better? #39

Open K4sum1 opened 1 year ago

K4sum1 commented 1 year ago

I've been benchmarking various flags, Java versions, etc, and in all of my testing nothing beats Java 8 with even stock options. I can only match Java 8 using stock flags with Java 17 using optimized flags.

snoopchallenge commented 1 year ago

use shenandoah gc on java 17

if java 8 managed to beat java 17 with it then check you arent using a debug build of java 17 and if you arent then i am amazed if java 8 has beaten java 17 in performance

also newer versions of minecraft perform worse so if you are comparing minecraft 1.20 to 1.8 then 1.8 will perform better

K4sum1 commented 1 year ago

Using modded 1.16. I tried various versions from the piss poor performing Semeru to GraalVM EE. I did ignore Shenandoah because it's in only one Java that might perform bad, but I guess it's worth a try.

Edit: I mean it's not in Oracle Java, which GraalVM EE is. I assume CE is the same, but I'll try it.

K4sum1 commented 1 year ago

I'm not making a RedHat account. BugMeNot blocks it because fuck you, so guess I'm just skipping it.

snoopchallenge commented 1 year ago

shenandoah is included in most hotspot java builds (e.g not semeru or graal) java 11 onwards

edit: do not use oracle's jdk builds they do not include shenandoah