Барсуков Максим P3215
Вывод бенчмарка с -O3
:
Little file (192.1 KiB), 1000 times, without SIMD: -------------------- c --- 0.446297 seconds
Little file (192.1 KiB), 1000 times, with SIMD: --------------------- asm --- 0.270169 seconds
Little file (192.1 KiB), 10_000 times, without SIMD: ------------------ c --- 4.478078 seconds
Little file (192.1 KiB), 10_000 times, with SIMD: ------------------- asm --- 2.714428 seconds
Big file (5.9 MiB), 100 times, without SIMD: -------------------------- c --- 1.362240 seconds
Big file (5.9 MiB), 100 times, with SIMD: --------------------------- asm --- 0.788805 seconds
С -O0
:
Little file (192.1 KiB), 1000 times, without SIMD: -------------------- c --- 2.344110 seconds
Little file (192.1 KiB), 1000 times, with SIMD: --------------------- asm --- 0.254074 seconds
Little file (192.1 KiB), 10_000 times, without SIMD: ------------------ c --- 23.655833 seconds
Little file (192.1 KiB), 10_000 times, with SIMD: ------------------- asm --- 2.732680 seconds
Big file (5.9 MiB), 100 times, without SIMD: -------------------------- c --- 7.998590 seconds
Big file (5.9 MiB), 100 times, with SIMD: --------------------------- asm --- 0.848681 seconds
то есть удалось достичь ускорения