This is the output of passing -prof perfasm to the benchmarks in
NoCHAPreventsOptimization
- for accessDefault
- for accessVirtual
- for accessForward
| import sun.misc.Unsafe; | |
| import java.io.IOException; | |
| import java.lang.reflect.Field; | |
| import java.nio.ByteBuffer; | |
| import java.nio.ByteOrder; | |
| import java.nio.channels.FileChannel; | |
| import java.nio.file.Files; | |
| import java.nio.file.Paths; | |
| import java.util.ArrayList; |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo | |
| echo usage: $0 network-interface | |
| echo | |
| echo e.g. $0 eth0 | |
| echo | |
| echo shows packets-per-second |
This is the output of passing -prof perfasm to the benchmarks in
NoCHAPreventsOptimization
| cd "C:%HOMEPATH%\.IntelliJIdea*\config" | |
| rmdir "eval" /s /q | |
| del "options\options.xml" | |
| reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\idea" /f | |
| :: It is Highly Advised to Purchase the JetBrain Softwares | |
| :: This is only for the case You just want to Extend the | |
| :: Trial Period and Evaluate the IDE for some more Time |
| # Base settings and GC logging | |
| -server -XX:+AlwaysPreTouch # First should be default, but we make it explicit, second pre-zeroes memory mapped pages on JVM startup -- improves runtime performance | |
| # -Xloggc:gc-%t.log # CUSTOMIZE LOCATION HERE - $path/gc-%t.log -- the %t in the gc log file path is so we get a new file with each JVM restart | |
| -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m # Limits the number of files, logs to folder | |
| -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause | |
| -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy # gather info on object age & reference GC time for further tuning if needed. | |
| # G1 specific settings -- probably should be default for multi-core systems with >2 GB of heap (below that, default is probably fine) | |
| -XX:+UseG1GC | |
| -XX:+UseStringDeduplication |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.