2014-11-04 07:02:17 +08:00
|
|
|
#~/bin/bash
|
2014-11-25 05:41:19 +08:00
|
|
|
echo "Running benchmakrs (all with 1000,000 writes to the logs folder)"
|
2014-11-04 07:02:17 +08:00
|
|
|
echo
|
|
|
|
echo "boost-bench (single thread).."
|
2014-12-03 08:06:50 +08:00
|
|
|
for i in {1..3}; do time ./boost-bench; done
|
|
|
|
rm -f logs/*
|
2014-11-24 08:15:17 +08:00
|
|
|
echo
|
|
|
|
echo
|
2014-11-25 05:38:58 +08:00
|
|
|
sleep 5
|
2014-11-24 08:44:45 +08:00
|
|
|
|
2014-11-23 06:24:46 +08:00
|
|
|
echo "glog-bench (single thread).."
|
2014-12-03 08:06:50 +08:00
|
|
|
for i in {1..3}; do time ./glog-bench; done
|
|
|
|
rm -f logs/*
|
2014-11-24 08:15:17 +08:00
|
|
|
echo
|
|
|
|
echo
|
2014-11-25 05:38:58 +08:00
|
|
|
sleep 5
|
2014-11-24 08:44:45 +08:00
|
|
|
|
|
|
|
echo "g2log-bench (single thread).."
|
2014-12-03 08:06:50 +08:00
|
|
|
for i in {1..3}; do time ./g2log-bench; done
|
|
|
|
rm -f logs/*
|
2014-11-24 08:44:45 +08:00
|
|
|
echo
|
|
|
|
echo
|
2014-11-25 05:38:58 +08:00
|
|
|
sleep 5
|
2014-11-24 08:44:45 +08:00
|
|
|
|
2014-11-04 07:02:17 +08:00
|
|
|
echo "spdlog-bench (single thread)"
|
2014-12-03 08:06:50 +08:00
|
|
|
for i in {1..3}; do time ./spdlog-bench; done
|
|
|
|
rm -f logs/*
|
2014-11-24 08:15:17 +08:00
|
|
|
echo
|
|
|
|
echo
|
2014-11-25 05:38:58 +08:00
|
|
|
sleep 5
|
2014-11-25 05:31:02 +08:00
|
|
|
echo "------------------------------------"
|
|
|
|
echo "Multithreaded benchmarks.."
|
|
|
|
echo "------------------------------------"
|
2014-11-04 07:02:17 +08:00
|
|
|
echo "boost-bench-mt (10 threads, single logger)"..
|
2014-12-03 08:06:50 +08:00
|
|
|
for i in {1..3}; do ./boost-bench-mt; done
|
|
|
|
rm -f logs/*
|
2014-11-24 08:15:17 +08:00
|
|
|
echo
|
|
|
|
echo
|
2014-11-25 05:38:58 +08:00
|
|
|
sleep 5
|
2014-11-24 08:44:45 +08:00
|
|
|
|
2014-11-23 06:24:46 +08:00
|
|
|
echo "glog-bench-mt (10 threads, single logger)"..
|
2014-12-03 08:06:50 +08:00
|
|
|
for i in {1..3}; do time ./glog-bench-mt; done
|
|
|
|
rm -f logs/*
|
2014-11-24 08:15:17 +08:00
|
|
|
echo
|
|
|
|
echo
|
2014-11-25 05:38:58 +08:00
|
|
|
sleep 5
|
2014-11-24 08:44:45 +08:00
|
|
|
|
|
|
|
echo "g2log-bench-mt (10 threads, single logger)"..
|
2014-12-03 08:06:50 +08:00
|
|
|
for i in {1..3}; do time ./g2log-bench-mt; done
|
|
|
|
rm -f logs/*
|
2014-11-24 08:44:45 +08:00
|
|
|
echo
|
|
|
|
echo
|
2014-11-25 05:38:58 +08:00
|
|
|
sleep 5
|
2014-11-24 08:44:45 +08:00
|
|
|
|
2014-11-04 07:02:17 +08:00
|
|
|
echo "spdlog-bench-mt (10 threads, single logger)"..
|
2014-12-03 08:06:50 +08:00
|
|
|
for i in {1..3}; do time ./spdlog-bench-mt; done
|
|
|
|
rm -f logs/*
|
2014-11-04 07:02:17 +08:00
|
|
|
echo
|
2014-11-24 08:15:17 +08:00
|
|
|
echo
|
2014-11-25 05:38:58 +08:00
|
|
|
sleep 5
|
2014-11-24 08:44:45 +08:00
|
|
|
|
2014-11-25 05:31:02 +08:00
|
|
|
echo "------------------------------------"
|
|
|
|
echo "Async benchmarks.."
|
|
|
|
echo "------------------------------------"
|
|
|
|
|
|
|
|
echo "spdlog-bench-async (single thread)"..
|
2014-12-03 08:06:50 +08:00
|
|
|
for i in {1..3}; do time ./spdlog-bench-async; done
|
|
|
|
rm -f logs/*
|
2014-11-25 05:31:02 +08:00
|
|
|
echo
|
|
|
|
echo
|
2014-11-25 05:38:58 +08:00
|
|
|
sleep 5
|
2014-11-25 05:31:02 +08:00
|
|
|
|
2014-11-24 08:15:17 +08:00
|
|
|
echo "spdlog-bench-mt-async (10 threads, single logger)"..
|
2014-12-03 08:06:50 +08:00
|
|
|
for i in {1..3}; do time ./spdlog-bench-mt-async; done
|
2014-11-24 08:15:17 +08:00
|
|
|
|
2014-11-04 07:02:17 +08:00
|
|
|
|
|
|
|
|