Skip to content

Instantly share code, notes, and snippets.

@MatiasVara
Last active February 1, 2024 17:36
Show Gist options
  • Save MatiasVara/c69a70a1547ecea0044ece43e4ab9e41 to your computer and use it in GitHub Desktop.
Save MatiasVara/c69a70a1547ecea0044ece43e4ab9e41 to your computer and use it in GitHub Desktop.
for i in 1000 200 120 50 20 10 2;
do
paplay --latency-ms=$i 44100_s16_2chan_file.wav &
PID=$!
sleep 1
echo "Latency $i 44100 server:"
sudo perf stat -p `pidof pipewire-uninstalled` --timeout 5000
echo "latency $i 44100 client:"
sudo perf stat -p $PID --timeout 5000
kill -9 $PID
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment