=== asmbench results 20261202-214214 === --- 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 315 612 20 1062 1599 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) 8720555 8.317 0.240 0.482 1.00x OK 2 f32 C -O3 autovec 1320461 1.259 1.588 3.183 6.60x OK 3 f32 NEON intrinsics 1034669 0.987 2.027 4.062 8.43x OK 4 f32 NEON assembly 1038252 0.990 2.020 4.048 8.40x OK 5 i8 C -O3 autovec 497042 0.474 4.219 2.120 17.54x OK (exact) 6 i8 NEON intrinsics 190126 0.181 11.030 5.542 45.87x OK (exact) 7 i8 NEON assembly 192167 0.183 10.913 5.483 45.38x 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) 34815679 8.301 0.241 0.482 1.00x OK 2 f32 C -O3 autovec 5612633 1.338 1.495 2.992 6.20x OK 3 f32 NEON intrinsics 4412798 1.052 1.901 3.806 7.89x OK 4 f32 NEON assembly 4418215 1.053 1.899 3.801 7.88x OK 5 i8 C -O3 autovec 2187128 0.521 3.835 1.922 15.92x OK (exact) 6 i8 NEON intrinsics 1244502 0.297 6.741 3.378 27.98x OK (exact) 7 i8 NEON assembly 1100919 0.262 7.620 3.819 31.62x 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) 36078515 8.278 0.242 0.484 1.00x OK 2 f32 C -O3 autovec 5943051 1.364 1.467 2.937 6.07x OK 3 f32 NEON intrinsics 4767008 1.094 1.828 3.662 7.57x OK 4 f32 NEON assembly 4765799 1.094 1.829 3.663 7.57x OK 5 i8 C -O3 autovec 2322379 0.533 3.753 1.885 15.54x OK (exact) 6 i8 NEON intrinsics 1340961 0.308 6.500 3.265 26.90x OK (exact) 7 i8 NEON assembly 1202377 0.276 7.249 3.642 30.01x 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) 41313273 39.399 0.051 0.102 1.00x OK 2 f32 C -O3 autovec 10663725 10.170 0.197 0.394 3.87x OK 3 f32 NEON intrinsics 4366673 4.164 0.480 0.962 9.46x OK 4 f32 NEON assembly 4335548 4.135 0.484 0.969 9.53x OK 5 i8 C -O3 autovec 2753046 2.626 0.762 0.383 15.01x OK (exact) 6 i8 NEON intrinsics 1230586 1.174 1.704 0.856 33.57x OK (exact) 7 i8 NEON assembly 1184419 1.130 1.771 0.890 34.88x 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) 164353307 39.185 0.051 0.102 1.00x OK 2 f32 C -O3 autovec 43014237 10.255 0.195 0.390 3.82x OK 3 f32 NEON intrinsics 18292280 4.361 0.459 0.918 8.98x OK 4 f32 NEON assembly 18177529 4.334 0.461 0.924 9.04x OK 5 i8 C -O3 autovec 12872521 3.069 0.652 0.327 12.77x OK (exact) 6 i8 NEON intrinsics 5289384 1.261 1.586 0.795 31.07x OK (exact) 7 i8 NEON assembly 5138925 1.225 1.632 0.818 31.98x 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) 176315790 40.457 0.049 0.099 1.00x OK 2 f32 C -O3 autovec 44404700 10.189 0.196 0.393 3.97x OK 3 f32 NEON intrinsics 19134199 4.390 0.456 0.912 9.21x OK 4 f32 NEON assembly 19061241 4.374 0.457 0.916 9.25x OK 5 i8 C -O3 autovec 13385689 3.071 0.651 0.327 13.17x OK (exact) 6 i8 NEON intrinsics 5545093 1.272 1.572 0.790 31.80x OK (exact) 7 i8 NEON assembly 5568385 1.278 1.565 0.786 31.66x OK (exact) All variants verified.