=== asmbench results 20261202-213433 === --- 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: ondemand cur_khz: 1000000 max_khz: 1400000 cpu4 governor: ondemand cur_khz: 1000000 max_khz: 2000000 free -m: total used free shared buff/cache available Mem: 1991 402 528 20 1060 1518 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) 8922895 8.510 0.235 0.471 1.00x OK 2 f32 C -O3 autovec 2159640 2.060 0.971 1.946 4.13x OK 3 f32 NEON intrinsics 1752637 1.671 1.197 2.398 5.09x OK 4 f32 NEON assembly 1757679 1.676 1.193 2.391 5.08x OK 5 i8 C -O3 autovec 474253 0.452 4.422 2.222 18.81x OK (exact) 6 i8 NEON intrinsics 182584 0.174 11.486 5.771 48.87x OK (exact) 7 i8 NEON assembly 187668 0.179 11.175 5.615 47.55x 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) 35414285 8.443 0.237 0.474 1.00x OK 2 f32 C -O3 autovec 11336204 2.703 0.740 1.481 3.12x OK 3 f32 NEON intrinsics 8077972 1.926 1.038 2.079 4.38x OK 4 f32 NEON assembly 6520045 1.554 1.287 2.576 5.43x OK 5 i8 C -O3 autovec 2724686 0.650 3.079 1.543 13.00x OK (exact) 6 i8 NEON intrinsics 1877596 0.448 4.468 2.239 18.86x OK (exact) 7 i8 NEON assembly 1562927 0.373 5.367 2.690 22.66x 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) 36509127 8.377 0.239 0.478 1.00x OK 2 f32 C -O3 autovec 9623774 2.208 0.906 1.814 3.79x OK 3 f32 NEON intrinsics 7870096 1.806 1.108 2.218 4.64x OK 4 f32 NEON assembly 6740255 1.547 1.293 2.590 5.42x OK 5 i8 C -O3 autovec 2754727 0.632 3.164 1.589 13.25x OK (exact) 6 i8 NEON intrinsics 2023597 0.464 4.307 2.164 18.04x OK (exact) 7 i8 NEON assembly 1897180 0.435 4.594 2.308 19.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) 50765391 48.414 0.041 0.083 1.00x OK 2 f32 C -O3 autovec 17540954 16.728 0.120 0.240 2.89x OK 3 f32 NEON intrinsics 10837283 10.335 0.194 0.388 4.68x OK 4 f32 NEON assembly 11006284 10.496 0.191 0.382 4.61x OK 5 i8 C -O3 autovec 5077660 4.842 0.413 0.208 10.00x OK (exact) 6 i8 NEON intrinsics 1261467 1.203 1.662 0.835 40.24x OK (exact) 7 i8 NEON assembly 1179467 1.125 1.778 0.893 43.04x 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) 204253861 48.698 0.041 0.082 1.00x OK 2 f32 C -O3 autovec 78662332 18.755 0.107 0.213 2.60x OK 3 f32 NEON intrinsics 33974608 8.100 0.247 0.494 6.01x OK 4 f32 NEON assembly 38815349 9.254 0.216 0.433 5.26x OK 5 i8 C -O3 autovec 19132256 4.561 0.438 0.220 10.68x OK (exact) 6 i8 NEON intrinsics 10396863 2.479 0.807 0.404 19.65x OK (exact) 7 i8 NEON assembly 10354613 2.469 0.810 0.406 19.73x 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) 207204669 47.544 0.042 0.084 1.00x OK 2 f32 C -O3 autovec 84587279 19.409 0.103 0.206 2.45x OK 3 f32 NEON intrinsics 39440699 9.050 0.221 0.443 5.25x OK 4 f32 NEON assembly 34722424 7.967 0.251 0.503 5.97x OK 5 i8 C -O3 autovec 20318056 4.662 0.429 0.215 10.20x OK (exact) 6 i8 NEON intrinsics 10944046 2.511 0.796 0.400 18.93x OK (exact) 7 i8 NEON assembly 9011928 2.068 0.967 0.486 22.99x OK (exact) All variants verified.