by geodel · 10y ago · 0 comments
About the memory footprint: The runtime is larger, so there's a baseline cost you have to pay for the JITs. But baseline != linear cost.
If you have a long-running applications that run more than a few seconds and crunch more than a few MB of data those numbers would change.
So unless you're using the JVM for one-shot script execution those benchmarks are not representative. And if you do then there would be certain optimizations that one could apply.
> There must be some end user (positive) impact of memory compaction in Java.
Fewer CPU cycles overhead per unit of work, i.e. better throughput, which does seem to be an issue for gogc[0]. No risk of quasi-leaks in the allocator due to fragmentation. Reduced cache misses[1]
[0] https://github.com/golang/go/issues/14161 [1] http://stackoverflow.com/q/31225252/1362755
I do not think so. Here is explanation about Java memory bloat in typically used data structures.
https://www.cs.virginia.edu/kim/publicity/pldi09tutorials/me...
Also, `regex-dna` will probably benefit from compact strings in java 9.
And some of the longer-running benchmarks are in fact faster on java, so I think that supports my point about warmup.
Yes, apart from reverse-complement, regex-dna, k-nucleotide, binary-trees.
> Also, `regex-dna` will probably benefit from compact strings in java 9.
Do you actually know that com.basistech will re-write their library to use compact strings?
> I think that supports my point
I think that's called cherry picking.
-- Benchmarks are of limited use.
-- Are JVM startup costs significant?
http://benchmarksgame.alioth.debian.org/sometimes-people-jus...
go version go1.7 linux/amd64
OP "Sub-millisecond GC pauses in Go 1.8"