1 Star 0 Fork 8

JavaSpace / disruptor-nien

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
runme.sh 840 Bytes
一键复制 编辑 原始数据 按行查看 历史
coder001 提交于 2022-10-26 15:07 . first commit
#!/bin/bash
rm *-gc.log
ARGS="$JAVA_HOME/bin/java -mx128m"
GCARGS="-verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+UseParNewGC -XX:+UseConcMarkSweepGC"
CPATH="-cp build/classes/main:build/classes/perf:templib/*.jar"
echo "Running Simple..."
time $ARGS $GCARGS -Xloggc:simple-gc.log $CPATH com.lmax.disruptor.immutable.SimplePerformanceTest
echo "Done"
grep 'stopped:' simple-gc.log | sed 's/.*stopped: \([0-9.]*\) seconds/\1/' | sort -n | awk '{ printf "%1.3f\n", $1 }' | (echo " Count Millis" ; uniq -c )
echo "Running Custom..."
time $ARGS $GCARGS -Xloggc:custom-gc.log $CPATH com.lmax.disruptor.immutable.CustomPerformanceTest
echo "Done"
grep 'stopped:' custom-gc.log | sed 's/.*stopped: \([0-9.]*\) seconds/\1/' | sort -n | awk '{ printf "%1.3f\n", $1 }' | (echo " Count Millis" ; uniq -c )
1
https://gitee.com/soulballad-java-space/disruptor-nien.git
git@gitee.com:soulballad-java-space/disruptor-nien.git
soulballad-java-space
disruptor-nien
disruptor-nien
master

搜索帮助