=== asmbench results 20261202-214334 === --- 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 613 20 1062 1600 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) 8708226 8.305 0.241 0.483 1.00x OK 2 f32 C -O3 autovec 1322670 1.261 1.586 3.177 6.58x OK 3 f32 NEON intrinsics 1073210 1.023 1.954 3.916 8.11x OK 4 f32 NEON assembly 1080835 1.031 1.940 3.888 8.06x OK 5 i8 C -O3 autovec 501084 0.478 4.185 2.103 17.38x OK (exact) 6 i8 NEON intrinsics 197292 0.188 10.630 5.341 44.14x OK (exact) 7 i8 NEON assembly 195250 0.186 10.741 5.397 44.60x 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) 34798656 8.297 0.241 0.483 1.00x OK 2 f32 C -O3 autovec 5684512 1.355 1.476 2.954 6.12x OK 3 f32 NEON intrinsics 4600427 1.097 1.823 3.650 7.56x OK 4 f32 NEON assembly 4611759 1.100 1.819 3.641 7.55x OK 5 i8 C -O3 autovec 2272713 0.542 3.691 1.850 15.31x OK (exact) 6 i8 NEON intrinsics 1277627 0.305 6.566 3.291 27.24x OK (exact) 7 i8 NEON assembly 1146669 0.273 7.316 3.667 30.35x 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) 36150159 8.295 0.241 0.483 1.00x OK 2 f32 C -O3 autovec 5783220 1.327 1.507 3.018 6.25x OK 3 f32 NEON intrinsics 4727051 1.085 1.844 3.693 7.65x OK 4 f32 NEON assembly 4717135 1.082 1.848 3.700 7.66x OK 5 i8 C -O3 autovec 2312213 0.531 3.770 1.894 15.63x OK (exact) 6 i8 NEON intrinsics 1313377 0.301 6.637 3.334 27.52x OK (exact) 7 i8 NEON assembly 1199419 0.275 7.267 3.651 30.14x 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) 42425631 40.460 0.049 0.099 1.00x OK 2 f32 C -O3 autovec 10726856 10.230 0.196 0.392 3.96x OK 3 f32 NEON intrinsics 4422426 4.218 0.474 0.950 9.59x OK 4 f32 NEON assembly 4379759 4.177 0.479 0.960 9.69x OK 5 i8 C -O3 autovec 2816089 2.686 0.745 0.374 15.07x OK (exact) 6 i8 NEON intrinsics 1232169 1.175 1.702 0.855 34.43x OK (exact) 7 i8 NEON assembly 1187961 1.133 1.765 0.887 35.71x 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) 165749978 39.518 0.051 0.101 1.00x OK 2 f32 C -O3 autovec 42692258 10.179 0.196 0.393 3.88x OK 3 f32 NEON intrinsics 18505999 4.412 0.453 0.907 8.96x OK 4 f32 NEON assembly 18323956 4.369 0.458 0.916 9.05x OK 5 i8 C -O3 autovec 12248193 2.920 0.685 0.343 13.53x OK (exact) 6 i8 NEON intrinsics 5376220 1.282 1.560 0.782 30.83x OK (exact) 7 i8 NEON assembly 5384095 1.284 1.558 0.781 30.79x 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) 171667579 39.390 0.051 0.102 1.00x OK 2 f32 C -O3 autovec 44338388 10.174 0.197 0.394 3.87x OK 3 f32 NEON intrinsics 18512040 4.248 0.471 0.943 9.27x OK 4 f32 NEON assembly 18419666 4.226 0.473 0.948 9.32x OK 5 i8 C -O3 autovec 13311737 3.054 0.655 0.329 12.90x OK (exact) 6 i8 NEON intrinsics 5525095 1.268 1.578 0.792 31.07x OK (exact) 7 i8 NEON assembly 5517387 1.266 1.580 0.794 31.11x OK (exact) All variants verified.