# HG changeset patch # User Chris Cannam # Date 1399370344 -3600 # Node ID daca1bab4946fb7abca4deb65406a898171b569b # Parent ce64d11ef336bdfb92b2d2a6563496c7fb8a4dc6 Add timing test script diff -r ce64d11ef336 -r daca1bab4946 testdata/timing/results.txt --- /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. + + diff -r ce64d11ef336 -r daca1bab4946 testdata/timing/run.sh --- /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" +