changeset 72:daca1bab4946

Add timing test script
author Chris Cannam
date Tue, 06 May 2014 10:59:04 +0100
parents ce64d11ef336
children 21acd34a0e3e
files testdata/timing/results.txt testdata/timing/run.sh
diffstat 2 files changed, 56 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/timing/results.txt	Tue May 06 10:59:04 2014 +0100
@@ -0,0 +1,32 @@
+
+Thinkpad T540p i5-4330M @2.80GHz with 16GB RAM, plugged in
+Arch Linux, gcc 4.8.2
+Using sonic-annotator v1.0 (commit:41c4de1e05d8), release build
+
+Debug flags: -g -fPIC
+Release flags: -O3 -ffast-math -msse -mfpmath=sse -ftree-vectorize -fPIC
+
+Note that the input file is single-channel 16-bit PCM at 44100Hz,
+duration 0m43.5s.
+
+
+DEBUG/RELEASE:
+
+commit:ce64d11ef336, release build of Silvet, release build of qm-dsp
+
+real	1m47.676s
+user	1m47.580s
+sys	0m0.193s
+
+commit:ce64d11ef336, debug build of Silvet, release build of qm-dsp
+
+
+commit:ce64d11ef336, release build of Silvet, debug build of qm-dsp
+
+
+commit:ce64d11ef336, debug build of Silvet, debug build of qm-dsp
+
+
+Subsequent tests use release builds of both.
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdata/timing/run.sh	Tue May 06 10:59:04 2014 +0100
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+trios_path="/home/cannam/Music/TRIOS_dataset"
+
+if [ ! -d "$trios_path" ]; then
+    echo "TRIOS dataset directory $trios_path not found, giving up"
+    exit 1
+fi
+
+if ! sonic-annotator -v ; then
+    echo "Failed to run sonic-annotator (not in PATH?), giving up"
+    exit 1
+fi
+
+VAMP_PATH=../..
+export VAMP_PATH
+
+time sonic-annotator \
+    --writer csv \
+    --csv-one-file /dev/null \
+    --csv-force \
+    --default vamp:silvet:silvet:notes \
+    "$trios_path/take_five/mix.wav"
+