spdlog/bench/run_all.sh

82 lines
1.5 KiB
Bash
Raw Normal View History

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