1 Star 2 Fork 9

疯狂创客圈/disruptor-nien

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
runoffheap.sh 851 Bytes
一键复制 编辑 原始数据 按行查看 历史
coder001 提交于 2022-10-26 15:07 . first commit
#!/bin/bash
rm *-gc.log
ARGS="$JAVA_HOME/bin/java -mx1g"
GCARGS="-verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:MaxDirectMemorySize=1g"
CPATH="-cp build/classes/main:build/classes/perf:templib/*.jar"
BIN="perf stat -e L1-dcache-loads -e L1-dcache-load-misses -e LLC-loads -e LLC-load-misses -e dTLB-loads -e dTLB-load-misses"
echo "Running OffHeap..."
$BIN $ARGS $GCARGS -Xloggc:simple-gc.log $CPATH com.lmax.disruptor.offheap.OneToOneOffHeapThroughputTest
echo "Done"
echo "Running OnHeap..."
$BIN $ARGS $GCARGS -Xloggc:custom-gc.log $CPATH com.lmax.disruptor.offheap.OneToOneOnHeapThroughputTest
echo "Done"
echo "Running Sliced OnHeap..."
$BIN $ARGS $GCARGS -Xloggc:custom-gc.log $CPATH -Dsliced=true com.lmax.disruptor.offheap.OneToOneOnHeapThroughputTest
echo "Done"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/crazymaker/disruptor-nien.git
git@gitee.com:crazymaker/disruptor-nien.git
crazymaker
disruptor-nien
disruptor-nien
master

搜索帮助