Wiki » History » Version 4
Chris Cannam, 2013-10-21 01:29 PM
1 | 1 | Chris Cannam | h1. Summary of results |
---|---|---|---|
2 | 1 | Chris Cannam | |
3 | 1 | Chris Cannam | We compared |
4 | 1 | Chris Cannam | |
5 | 2 | Chris Cannam | * @decimate@: the "Decimator"http://code.soundsoftware.ac.uk/projects/qm-dsp/embedded/classDecimator.html implementation in the "qm-dsp":/projects/qm-dsp library, which uses an 8-tap IIR lowpass filter; |
6 | 1 | Chris Cannam | |
7 | 2 | Chris Cannam | * @resample_hq@, @resample_mq@, @resample_lq@: the "Resampler":http://code.soundsoftware.ac.uk/projects/qm-dsp/embedded/classResampler.html implementation in the "qm-dsp":/projects/qm-dsp library, which uses a lengthy Kaiser-windowed sinc filter, at three different quality settings; |
8 | 1 | Chris Cannam | |
9 | 1 | Chris Cannam | * @src@: the sndfile-resample program which uses "libsamplerate":http://mega-nerd.com/SRC/, a well trusted resampler also using a Kaiser-windowed sinc implementation, at its default quality setting; |
10 | 1 | Chris Cannam | |
11 | 1 | Chris Cannam | * @zoh@: the sndfile-resample zero-order hold resampler, which just takes every Nth sample without any filtering, serving as a baseline. |
12 | 3 | Chris Cannam | |
13 | 3 | Chris Cannam | h2. Speed |
14 | 3 | Chris Cannam | |
15 | 4 | Chris Cannam | For 5292000 input frames on a Core i3-3229Y low-voltage CPU. (Frames-per-second values are for input frames.) |
16 | 3 | Chris Cannam | |
17 | 4 | Chris Cannam | The qm-dsp implementations (resample_* and decimate) were compiled with -O3 -ffast-math while the libsamplerate implementations (src and zoh) were standard Ubuntu packages, so probably -O2. This is likely to make a very significant difference, so these results are more useful for comparison among the qm-dsp implementations than between qm-dsp and libsamplerate. |
18 | 1 | Chris Cannam | |
19 | 4 | Chris Cannam | All implementations use libsndfile for audio file I/O, so that should not be a factor in overall speed. |
20 | 4 | Chris Cannam | |
21 | 4 | Chris Cannam | h3. Implementations by decimation factor |
22 | 4 | Chris Cannam | |
23 | 3 | Chris Cannam | h4. Factor 2 |
24 | 3 | Chris Cannam | |
25 | 3 | Chris Cannam | |Frames per second|Clock time|Implementation| |
26 | 3 | Chris Cannam | | 14225806|0.372|decimate| |
27 | 3 | Chris Cannam | | 8939189|0.592|zoh| |
28 | 3 | Chris Cannam | | 3732016|1.418|resample_lq| |
29 | 3 | Chris Cannam | | 1856842|2.850|resample_mq| |
30 | 3 | Chris Cannam | | 989158|5.350|resample_hq| |
31 | 1 | Chris Cannam | | 516141|10.253|src| |
32 | 3 | Chris Cannam | |
33 | 4 | Chris Cannam | |
34 | 1 | Chris Cannam | h4. Factor 4 |
35 | 4 | Chris Cannam | |
36 | 4 | Chris Cannam | |Frames per second|Clock time|Implementation| |
37 | 4 | Chris Cannam | |17070967|0.310|zoh| |
38 | 4 | Chris Cannam | |14659279|0.361|decimate| |
39 | 4 | Chris Cannam | | 4285020|1.235|resample_lq| |
40 | 4 | Chris Cannam | | 2186776|2.420|resample_mq| |
41 | 4 | Chris Cannam | | 1056287|5.010|resample_hq| |
42 | 4 | Chris Cannam | | 610099|8.674|src| |
43 | 4 | Chris Cannam | |
44 | 1 | Chris Cannam | h4. Factor 8 |
45 | 4 | Chris Cannam | |
46 | 4 | Chris Cannam | |Frames per second|Clock time|Implementation| |
47 | 4 | Chris Cannam | |26328358|0.201|zoh| |
48 | 4 | Chris Cannam | |13926315|0.380|decimate| |
49 | 4 | Chris Cannam | | 4895467|1.081|resample_lq| |
50 | 4 | Chris Cannam | | 2470588|2.142|resample_mq| |
51 | 4 | Chris Cannam | | 1166409|4.537|resample_hq| |
52 | 4 | Chris Cannam | | 614919|8.606|src| |
53 | 4 | Chris Cannam | |
54 | 1 | Chris Cannam | h4. Factor 16 |
55 | 4 | Chris Cannam | |
56 | 4 | Chris Cannam | |Frames per second|Clock time|Implementation| |
57 | 4 | Chris Cannam | |33493670|0.158|zoh| |
58 | 4 | Chris Cannam | |12721153|0.416|decimate| |
59 | 4 | Chris Cannam | | 5093358|1.039|resample_lq| |
60 | 4 | Chris Cannam | | 2515209|2.104|resample_mq| |
61 | 4 | Chris Cannam | | 1182041|4.477|resample_hq| |
62 | 4 | Chris Cannam | | 668857|7.912|src| |
63 | 4 | Chris Cannam | |
64 | 1 | Chris Cannam | h4. Factor 32 |
65 | 4 | Chris Cannam | |
66 | 4 | Chris Cannam | |Frames per second|Clock time|Implementation| |
67 | 4 | Chris Cannam | |41669291|0.127|zoh| |
68 | 4 | Chris Cannam | |14498630|0.365|decimate| |
69 | 4 | Chris Cannam | | 5318592|0.995|resample_lq| |
70 | 4 | Chris Cannam | | 2312937|2.288|resample_mq| |
71 | 4 | Chris Cannam | | 1148936|4.606|resample_hq| |
72 | 4 | Chris Cannam | | 670467|7.893|src| |
73 | 4 | Chris Cannam | |
74 | 1 | Chris Cannam | h4. Factor 64 |
75 | 4 | Chris Cannam | |
76 | 4 | Chris Cannam | |Frames per second|Clock time|Implementation| |
77 | 4 | Chris Cannam | |42000000|0.126|zoh| |
78 | 4 | Chris Cannam | |13397468|0.395|decimate| |
79 | 4 | Chris Cannam | | 5040000|1.050|resample_lq| |
80 | 4 | Chris Cannam | | 2365668|2.237|resample_mq| |
81 | 4 | Chris Cannam | | 1232704|4.293|resample_hq| |
82 | 4 | Chris Cannam | | 636057|8.320|src| |
83 | 4 | Chris Cannam | |
84 | 4 | Chris Cannam | h4. Implementation zoh |
85 | 4 | Chris Cannam | |
86 | 4 | Chris Cannam | |Frames per second|Clock time|Factor| |
87 | 4 | Chris Cannam | |42000000|0.126|factor 64| |
88 | 4 | Chris Cannam | |41669291|0.127|factor 32| |
89 | 4 | Chris Cannam | |33493670|0.158|factor 16| |
90 | 4 | Chris Cannam | |26328358|0.201|factor 8| |
91 | 4 | Chris Cannam | |17070967|0.310|factor 4| |
92 | 4 | Chris Cannam | | 8939189|0.592|factor 2| |
93 | 4 | Chris Cannam | |
94 | 4 | Chris Cannam | h4. Implementation decimate |
95 | 4 | Chris Cannam | |
96 | 4 | Chris Cannam | |Frames per second|Clock time|Factor| |
97 | 4 | Chris Cannam | |14659279|0.361|factor 4| |
98 | 4 | Chris Cannam | |14498630|0.365|factor 32| |
99 | 4 | Chris Cannam | |14225806|0.372|factor 2| |
100 | 4 | Chris Cannam | |13926315|0.380|factor 8| |
101 | 4 | Chris Cannam | |13397468|0.395|factor 64| |
102 | 4 | Chris Cannam | |12721153|0.416|factor 16| |
103 | 4 | Chris Cannam | |
104 | 4 | Chris Cannam | h4. Implementation resample_hq |
105 | 4 | Chris Cannam | |
106 | 4 | Chris Cannam | |Frames per second|Clock time|Factor| |
107 | 4 | Chris Cannam | | 1232704|4.293|factor 64| |
108 | 4 | Chris Cannam | | 1182041|4.477|factor 16| |
109 | 4 | Chris Cannam | | 1166409|4.537|factor 8| |
110 | 4 | Chris Cannam | | 1148936|4.606|factor 32| |
111 | 4 | Chris Cannam | | 1056287|5.010|factor 4| |
112 | 4 | Chris Cannam | | 989158|5.350|factor 2| |
113 | 4 | Chris Cannam | |
114 | 4 | Chris Cannam | h4. Implementation resample_mq |
115 | 4 | Chris Cannam | |
116 | 4 | Chris Cannam | |Frames per second|Clock time|Factor| |
117 | 4 | Chris Cannam | | 2515209|2.104|factor 16| |
118 | 4 | Chris Cannam | | 2470588|2.142|factor 8| |
119 | 4 | Chris Cannam | | 2365668|2.237|factor 64| |
120 | 4 | Chris Cannam | | 2312937|2.288|factor 32| |
121 | 4 | Chris Cannam | | 2186776|2.420|factor 4| |
122 | 4 | Chris Cannam | | 1856842|2.850|factor 2| |
123 | 4 | Chris Cannam | |
124 | 4 | Chris Cannam | h4. Implementation resample_lq |
125 | 4 | Chris Cannam | |
126 | 4 | Chris Cannam | |Frames per second|Clock time|Factor| |
127 | 4 | Chris Cannam | | 5318592|0.995|factor 32| |
128 | 4 | Chris Cannam | | 5093358|1.039|factor 16| |
129 | 4 | Chris Cannam | | 5040000|1.050|factor 64| |
130 | 4 | Chris Cannam | | 4895467|1.081|factor 8| |
131 | 4 | Chris Cannam | | 4285020|1.235|factor 4| |
132 | 4 | Chris Cannam | | 3732016|1.418|factor 2| |
133 | 4 | Chris Cannam | |
134 | 4 | Chris Cannam | h4. Implementation src |
135 | 4 | Chris Cannam | |
136 | 4 | Chris Cannam | |Frames per second|Clock time|Factor| |
137 | 4 | Chris Cannam | | 670467|7.893|factor 32| |
138 | 4 | Chris Cannam | | 668857|7.912|factor 16| |
139 | 4 | Chris Cannam | | 636057|8.320|factor 64| |
140 | 4 | Chris Cannam | | 614919|8.606|factor 8| |
141 | 4 | Chris Cannam | | 610099|8.674|factor 4| |
142 | 4 | Chris Cannam | | 516141|10.253|factor 2| |