e mais conteúdo.
-XX:+AggressiveHeap
-XX:+AggressiveOps
-XX:+UseCompressedOops
-XX:+UseStringDeduplicationJVM
-XX:+UseSerialGC
-XX:-UseParallelGC
-XX:+UseConcMarkSweepGC
–XX:+UseG1GC
Xmx
Xms
Xmn?
Xmx
Xms
Xmn?
class MemoryTest
printf("<html>")
.
.
.
printf("</html>")
class ThreadTest
@Benchmark
void methodA() {
// versão A...
}
@Benchmark
void methodB() {
// versão B...
}
Benchmark Mode Samples Mean MeanError Units
SuaClasse.metodoA avgt 10 17.588 0.230 ns/op
SuaClasse.metodoB avgt 10 10.796 0.063 ns/op
ab -c 10 -n 1000 http://www.vivareal.com.br/
Percentage of the requests served within a certain time (ms)
50% 58
66% 60
75% 63
80% 65
90% 67
95% 69
98% 71
99% 72
100% 72 (longest request)
class ListTest
20s