=== asmbench results 20261202-214055 === --- system info --- Linux odroid 5.4.275-271 #1 SMP PREEMPT Tue May 7 11:44:30 EDT 2024 armv7l armv7l armv7l GNU/Linux gcc: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 Architecture: armv7l CPU(s): 8 On-line CPU(s) list: 0-7 Thread(s) per core: 1 Core(s) per socket: 4 Model name: Cortex-A7 cpu0 governor: performance cur_khz: 1400000 max_khz: 1400000 cpu4 governor: performance cur_khz: 2000000 max_khz: 2000000 free -m: total used free shared buff/cache available Mem: 1991 314 615 20 1062 1601 Swap: 0 0 0 NOTE: for steadier numbers, consider the 'performance' governor, e.g. echo performance | sudo tee /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor (and cpu0 for the A7 run). This script does not change it. Stop llama.cpp and other heavy jobs first. Note the temperature/throttling if the board is hot. ##### A15 big cores: taskset -c 4-7 (single thread) ##### matvec benchmark: runs=21 warmup=3 label='A15_cpu4-7' == 1024 x 1024 (W f32 4.2 MB, W i8 1.0 MB) == variant median ns ns/MAC GFLOP/s GB/s speedup check 1 f32 C -O0 (naive) 8713550 8.310 0.241 0.482 1.00x OK 2 f32 C -O3 autovec 1690252 1.612 1.241 2.486 5.16x OK 3 f32 NEON intrinsics 1211543 1.155 1.731 3.469 7.19x OK 4 f32 NEON assembly 1959210 1.868 1.070 2.145 4.45x OK 5 i8 C -O3 autovec 560793 0.535 3.740 1.879 15.54x OK (exact) 6 i8 NEON intrinsics 201000 0.192 10.434 5.242 43.35x OK (exact) 7 i8 NEON assembly 206792 0.197 10.141 5.095 42.14x OK (exact) == 2048 x 2048 (W f32 16.8 MB, W i8 4.2 MB) == variant median ns ns/MAC GFLOP/s GB/s speedup check 1 f32 C -O0 (naive) 35161283 8.383 0.239 0.478 1.00x OK 2 f32 C -O3 autovec 7197798 1.716 1.165 2.333 4.89x OK 3 f32 NEON intrinsics 5990797 1.428 1.400 2.803 5.87x OK 4 f32 NEON assembly 6076923 1.449 1.380 2.764 5.79x OK 5 i8 C -O3 autovec 2260252 0.539 3.711 1.860 15.56x OK (exact) 6 i8 NEON intrinsics 1585918 0.378 5.289 2.651 22.17x OK (exact) 7 i8 NEON assembly 1391168 0.332 6.030 3.022 25.27x OK (exact) == 4864 x 896 (W f32 17.4 MB, W i8 4.4 MB) == variant median ns ns/MAC GFLOP/s GB/s speedup check 1 f32 C -O0 (naive) 36298952 8.329 0.240 0.481 1.00x OK 2 f32 C -O3 autovec 7633258 1.751 1.142 2.287 4.76x OK 3 f32 NEON intrinsics 5083796 1.167 1.715 3.434 7.14x OK 4 f32 NEON assembly 5027547 1.154 1.734 3.472 7.22x OK 5 i8 C -O3 autovec 2242918 0.515 3.886 1.952 16.18x OK (exact) 6 i8 NEON intrinsics 1406752 0.323 6.196 3.112 25.80x OK (exact) 7 i8 NEON assembly 1285168 0.295 6.782 3.407 28.24x OK (exact) All variants verified. ##### A7 little core: taskset -c 0 (single thread) ##### matvec benchmark: runs=21 warmup=3 label='A7_cpu0' == 1024 x 1024 (W f32 4.2 MB, W i8 1.0 MB) == variant median ns ns/MAC GFLOP/s GB/s speedup check 1 f32 C -O0 (naive) 40936914 39.040 0.051 0.103 1.00x OK 2 f32 C -O3 autovec 10616510 10.125 0.198 0.396 3.86x OK 3 f32 NEON intrinsics 4562046 4.351 0.460 0.921 8.97x OK 4 f32 NEON assembly 4551879 4.341 0.461 0.923 8.99x OK 5 i8 C -O3 autovec 2791377 2.662 0.751 0.377 14.67x OK (exact) 6 i8 NEON intrinsics 1211293 1.155 1.731 0.870 33.80x OK (exact) 7 i8 NEON assembly 1160667 1.107 1.807 0.908 35.27x OK (exact) == 2048 x 2048 (W f32 16.8 MB, W i8 4.2 MB) == variant median ns ns/MAC GFLOP/s GB/s speedup check 1 f32 C -O0 (naive) 169108960 40.319 0.050 0.099 1.00x OK 2 f32 C -O3 autovec 42880710 10.224 0.196 0.392 3.94x OK 3 f32 NEON intrinsics 18502185 4.411 0.453 0.908 9.14x OK 4 f32 NEON assembly 18362477 4.378 0.457 0.915 9.21x OK 5 i8 C -O3 autovec 12775430 3.046 0.657 0.329 13.24x OK (exact) 6 i8 NEON intrinsics 5238173 1.249 1.601 0.803 32.28x OK (exact) 7 i8 NEON assembly 5104255 1.217 1.643 0.824 33.13x OK (exact) == 4864 x 896 (W f32 17.4 MB, W i8 4.4 MB) == variant median ns ns/MAC GFLOP/s GB/s speedup check 1 f32 C -O0 (naive) 171856809 39.433 0.051 0.102 1.00x OK 2 f32 C -O3 autovec 44128547 10.126 0.198 0.396 3.89x OK 3 f32 NEON intrinsics 19266146 4.421 0.452 0.906 8.92x OK 4 f32 NEON assembly 18999770 4.360 0.459 0.919 9.05x OK 5 i8 C -O3 autovec 13309557 3.054 0.655 0.329 12.91x OK (exact) 6 i8 NEON intrinsics 5532339 1.269 1.576 0.791 31.06x OK (exact) 7 i8 NEON assembly 5504756 1.263 1.583 0.795 31.22x OK (exact) All variants verified.