4 ms·
These measurements show Go programs using more memory than the corresponding Java programs, please explain how that fits with your "awesome bloat" remark. k-nu
by igouy 14y ago
These measurements show Go programs using more memory than the corresponding Java programs, please explain how that fits with your "awesome bloat" remark.
k-nucleotide 260,908KB vs Java program 167,924KB
regex-dna 679,836KB vs Java program 621,712KB
binary-trees 565,076KB vs Java program 528,364KB
and not much difference for this
reverse-complement 249,304KB vs Java program 298,904KB
http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?test=all&lang=go&lang2=java#faster-programs-measurements http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...
For tiny tiny programs that only allocate a few KB, the default JVM allocation swamps what the programs use -- that changes when programs need to allocate memory.