2014-11-03 18:02:17 -05:00
|
|
|
#~/bin/bash
|
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).."
|
|
|
|
time ./boost-bench
|
2014-11-24 16:38:58 -05:00
|
|
|
rm 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).."
|
|
|
|
time ./glog-bench
|
2014-11-24 16:38:58 -05:00
|
|
|
rm 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).."
|
|
|
|
time ./g2log-bench
|
2014-11-24 16:38:58 -05:00
|
|
|
rm 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)"
|
|
|
|
time ./spdlog-bench
|
2014-11-24 16:38:58 -05:00
|
|
|
rm 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)"..
|
|
|
|
time ./boost-bench-mt
|
2014-11-24 16:38:58 -05:00
|
|
|
rm 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)"..
|
|
|
|
time ./glog-bench-mt
|
2014-11-24 16:38:58 -05:00
|
|
|
rm 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)"..
|
|
|
|
time ./g2log-bench-mt
|
2014-11-24 16:38:58 -05:00
|
|
|
rm 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)"..
|
|
|
|
time ./spdlog-bench-mt
|
2014-11-24 16:38:58 -05:00
|
|
|
rm 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)"..
|
|
|
|
time ./spdlog-bench-async
|
2014-11-24 16:38:58 -05:00
|
|
|
rm 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)"..
|
|
|
|
time ./spdlog-bench-mt-async
|
|
|
|
|
2014-11-03 18:02:17 -05:00
|
|
|
|
|
|
|
|