Skip to content

Commit 56bc446

Browse files
committed
Adjust plot order and add text
1 parent 043eece commit 56bc446

6 files changed

Lines changed: 7 additions & 5 deletions

File tree

docs/benchmark.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ The following Python packages are benchmarked against each other:
3434
* audioread_ 2.1.9
3535
* :mod:`audiofile` 1.1.0
3636
* librosa_ 0.9.1
37+
* pedalboard_ 0.5.3
3738
* scipy_ 1.8.0
3839
* soundfile_ 0.10.3.post1
3940
* sox_ 1.4.1
@@ -126,7 +127,7 @@ Reading files
126127

127128
soundfile_ does not support
128129
reading MP3 and MP4 files,
129-
audioread_ (mad) only MP3 files.
130+
audioread_ (mad) and pedalboard_ only MP3 files.
130131

131132
.. image:: ./benchmark/results/benchmark_mp3-mp4_read.png
132133

@@ -135,7 +136,7 @@ Accessing metadata
135136

136137
soundfile_ does not support
137138
accessing MP3 and MP4 metadata.
138-
sox_ and audioread_ (mad) only for MP3 files.
139+
sox_, audioread_ (mad) and pedalboard_ only for MP3 files.
139140

140141
.. image:: ./benchmark/results/benchmark_mp3-mp4_info.png
141142

@@ -158,6 +159,7 @@ in the figure.
158159
.. _gstreamer: https://gstreamer.freedesktop.org/
159160
.. _librosa: https://github.com/librosa/librosa/
160161
.. _mad: https://sourceforge.net/projects/mad/
162+
.. _pedalboard: https://github.com/spotify/pedalboard
161163
.. _scipy: https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.wavfile.read.html
162164
.. _soundfile: https://github.com/bastibe/SoundFile/
163165
.. _sox: https://github.com/rabitt/pysox/

docs/benchmark/plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
MAPPINGS['soundfile'],
4747
MAPPINGS['aubio'],
4848
MAPPINGS['librosa'],
49-
MAPPINGS['pedalboard'],
5049
MAPPINGS['ar_ffmpeg'],
50+
MAPPINGS['pedalboard'],
5151
MAPPINGS['scipy'],
5252
]
5353
height = 5.6
@@ -66,9 +66,9 @@
6666
MAPPINGS['audiofile'],
6767
MAPPINGS['aubio'],
6868
MAPPINGS['librosa'],
69-
MAPPINGS['pedalboard'],
7069
MAPPINGS['ar_ffmpeg'],
7170
MAPPINGS['ar_mad'],
71+
MAPPINGS['pedalboard'],
7272
]
7373
height = 3.36
7474
aspect = 2.0
@@ -77,9 +77,9 @@
7777
MAPPINGS['audiofile'],
7878
MAPPINGS['audiofile_sloppy'],
7979
MAPPINGS['aubio'],
80-
MAPPINGS['pedalboard'],
8180
MAPPINGS['ar_ffmpeg'],
8281
MAPPINGS['ar_mad'],
82+
MAPPINGS['pedalboard'],
8383
MAPPINGS['sox'],
8484
]
8585
height = 3.7
-289 Bytes
Loading
-57 Bytes
Loading
34 Bytes
Loading
24 Bytes
Loading

0 commit comments

Comments
 (0)