bench: added latency comparison with g3log

This commit is contained in:
gabime
2016-10-01 16:55:13 +03:00
parent 56678a5f6a
commit 6ce507eceb
5 changed files with 360 additions and 0 deletions

13
bench/latency/compare.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
echo "running spdlog and g3log tests 10 time with ${1:-10} threads each (total 1,000,000 entries).."
rm -f *.log
for i in {1..10}
do
echo
sleep 0.5
./spdlog-latency ${1:-10} 2>/dev/null || exit
sleep 0.5
./g3log-latency ${1:-10} 2>/dev/null || exit
done