diff --git a/content/technical/2008/04/mp3-decoder-libraries-compared.html b/content/technical/2008/04/mp3-decoder-libraries-compared.html index 4fe508c..1305ca8 100644 --- a/content/technical/2008/04/mp3-decoder-libraries-compared.html +++ b/content/technical/2008/04/mp3-decoder-libraries-compared.html @@ -9,6 +9,7 @@ I did some searching and came up with two other libraries that seemed well suite I built the two additional libraries with the default configuration options, except for libmad, which I added the --enable-speed option. With the help of example code I made programs out of each that were comparable to the first version for Core Audio. I.e. MP3 file in, 16-bit Linear PCM audio samples out. To provide a benchmark I wrote a script that would run each of the three programs against a source MP3 file. Each program reported the elapsed time (via time(3)) and the processor time (via clock(3)) when it finished decoding. The programs were run one after another on the source file 10 times. Their PCM output was written to a new file for each invocation. +

Environment

@@ -22,180 +23,180 @@ The results of the tests for my sample MP3s is below. The individual times were - - - - - - - - - - - - + + + + + + + + + + + +
Size4,296,251 bytes
Bitrate160 kbps
Channels2 (Joint Stereo)
Length3:34
Size4,296,251 bytes
Bitrate160 kbps
Channels2 (Joint Stereo)
Length3:34
- - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +
LibraryAverage Elapsed TimeAverage Processor TimeProcessor Time Std. Deviation
mpg1232.301.710.95
Core Audio4.103.630.27
mad4.804.420.02
LibraryAverage Elapsed TimeAverage Processor TimeProcessor Time Std. Deviation
mpg1232.301.710.95
Core Audio4.103.630.27
mad4.804.420.02

Medium Mono File

- - - - - - - - - - - - + + + + + + + + + + + +
Size83,091,456 bytes
Bitrate320 kbps
Channels1 (Mono)
Length34:37
Size83,091,456 bytes
Bitrate320 kbps
Channels1 (Mono)
Length34:37
- - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +
LibraryAverage Elapsed TimeAverage Processor TimeProcessor Time Std. Deviation
mpg12311.109.400.03
mad26.9024.600.03
Core Audio33.6030.331.18
LibraryAverage Elapsed TimeAverage Processor TimeProcessor Time Std. Deviation
mpg12311.109.400.03
mad26.9024.600.03
Core Audio33.6030.331.18

Large File

- - - - - - - - - - - - + + + + + + + + + + + +
Size126,083,072 bytes
Bitrate224 kbps
Channels2 (Joint Stereo)
Length1:15:02
Size126,083,072 bytes
Bitrate224 kbps
Channels2 (Joint Stereo)
Length1:15:02
- - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +
LibraryAverage Elapsed TimeAverage Processor TimeProcessor Time Std. Deviation
mpg12337.0032.210.19
Core Audio84.0078.340.34
mad100.1094.440.15
LibraryAverage Elapsed TimeAverage Processor TimeProcessor Time Std. Deviation
mpg12337.0032.210.19
Core Audio84.0078.340.34
mad100.1094.440.15

Large VBR File

- - - - - - - - - - - - + + + + + + + + + + + +
Size123,028,672 bytes
Bitrate210 kbps (VBR)
Channels2 (Joint Stereo)
Length1:17:46
Size123,028,672 bytes
Bitrate210 kbps (VBR)
Channels2 (Joint Stereo)
Length1:17:46
- - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +
LibraryAverage Elapsed TimeAverage Processor TimeProcessor Time Std. Deviation
mpg12337.9032.960.13
Core Audio86.4080.520.18
mad104.3098.430.10
LibraryAverage Elapsed TimeAverage Processor TimeProcessor Time Std. Deviation
mpg12337.9032.960.13
Core Audio86.4080.520.18
mad104.3098.430.10

diff --git a/output/css/screen.css b/output/css/screen.css index 95605db..1b50bdd 100644 --- a/output/css/screen.css +++ b/output/css/screen.css @@ -330,4 +330,19 @@ ul.inline li:first-child { border-top-color: #999; width: 10em; margin: 0; -} \ No newline at end of file +} + +/* Styles for MP3 Decoder post */ +table.left_headers, table.top_headers { + border: 1px solid #D8D8D8; + border-collapse: collapse; + margin: 1em 0; +} +table.left_headers td, table.left_headers th, +table.top_headers td, table.top_headers th { + border: 1px solid #D8D8D8; + padding: 0.3em 0.7em 0.3em 0.7em; +} +table.left_headers th { + text-align: right; +}