mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-30 05:20:59 +00:00
76 lines
3.2 KiB
Plaintext
76 lines
3.2 KiB
Plaintext
erikd@coltrane > cat tests/benchmark-0.0.28
|
|
Benchmarking libsndfile-0.0.28
|
|
------------------------------
|
|
Each test takes a little over 5 seconds.
|
|
|
|
Raw write PCM_16 : 31022959 samples per sec
|
|
Raw read PCM_16 : 63471874 samples per sec
|
|
|
|
Native endian I/O :
|
|
Write short to PCM_16 : 83.19% of raw write
|
|
Read short from PCM_16 : 82.28% of raw read
|
|
Write int to PCM_24 : 30.81% of raw write
|
|
Read int from PCM_24 : 32.92% of raw read
|
|
Write float to PCM_16 : 17.70% of raw write
|
|
Read float from PCM_16 : 43.64% of raw read
|
|
Write float to PCM_24 : 15.09% of raw write
|
|
Read float from PCM_24 : 27.79% of raw read
|
|
Write float to PCM_32 : 14.32% of raw write
|
|
Read float from PCM_32 : 34.42% of raw read
|
|
Write float to FLOAT : 28.64% of raw write
|
|
Read float from FLOAT : 56.77% of raw read
|
|
|
|
Endian swapped I/O :
|
|
Write short to PCM_16 : 44.04% of raw write
|
|
Read short from PCM_16 : 49.46% of raw read
|
|
Write int to PCM_24 : 28.92% of raw write
|
|
Read int from PCM_24 : 33.10% of raw read
|
|
Write float to PCM_16 : 17.30% of raw write
|
|
Read float from PCM_16 : 31.46% of raw read
|
|
Write float to PCM_24 : 14.62% of raw write
|
|
Read float from PCM_24 : 27.64% of raw read
|
|
Write float to PCM_32 : 13.65% of raw write
|
|
Read float from PCM_32 : 22.41% of raw read
|
|
Write float to FLOAT : 19.13% of raw write
|
|
Read float from FLOAT : 26.21% of raw read
|
|
|
|
erikd@coltrane > tests/benchmark
|
|
Benchmarking libsndfile-1.0.0
|
|
-----------------------------
|
|
Each test takes a little over 5 seconds.
|
|
|
|
Raw write PCM_16 : 29884416 samples per sec
|
|
Raw read PCM_16 : 63347175 samples per sec
|
|
|
|
Native endian I/O :
|
|
Write short to PCM_16 : 88.24% of raw write
|
|
Read short from PCM_16 : 82.76% of raw read
|
|
Write int to PCM_24 : 34.95% of raw write
|
|
Read int from PCM_24 : 37.17% of raw read
|
|
Write int to PCM_32 : 43.86% of raw write
|
|
Read int from PCM_32 : 41.22% of raw read
|
|
Write float to PCM_16 : 42.07% of raw write
|
|
Read float from PCM_16 : 44.25% of raw read
|
|
Write float to PCM_24 : 32.43% of raw write
|
|
Read float from PCM_24 : 28.93% of raw read
|
|
Write float to PCM_32 : 25.60% of raw write
|
|
Read float from PCM_32 : 31.10% of raw read
|
|
Write float to FLOAT : 45.55% of raw write
|
|
Read float from FLOAT : 57.41% of raw read
|
|
|
|
Endian swapped I/O :
|
|
Write short to PCM_16 : 43.46% of raw write
|
|
Read short from PCM_16 : 43.99% of raw read
|
|
Write int to PCM_24 : 35.09% of raw write
|
|
Read int from PCM_24 : 37.34% of raw read
|
|
Write int to PCM_32 : 24.05% of raw write
|
|
Read int from PCM_32 : 19.74% of raw read
|
|
Write float to PCM_16 : 40.25% of raw write
|
|
Read float from PCM_16 : 32.15% of raw read
|
|
Write float to PCM_24 : 31.02% of raw write
|
|
Read float from PCM_24 : 28.82% of raw read
|
|
Write float to PCM_32 : 23.54% of raw write
|
|
Read float from PCM_32 : 23.65% of raw read
|
|
Write float to FLOAT : 24.87% of raw write
|
|
Read float from FLOAT : 20.28% of raw read
|