mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
bench: added latency comparison with g3log
This commit is contained in:
13
bench/latency/compare.sh
Executable file
13
bench/latency/compare.sh
Executable 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
|
Reference in New Issue
Block a user