CPU benchmark package

Is there a CPU benchmark package I can get from opkg repos?

coremark - Embedded Microprocessor Benchmark

1 Like

do we have a table for such benchmarks to compare different OpenWrt supported routers just for the performance geeks?

There's the pretty useless iperf3 thread...

1 Like

I think the OP is asking for a CPU benchmark. For linux there is y-cruncher and sysbench but I don't see either in the package repo. I took a look at coremark but that seems to run single threaded. Maybe someone else can post how to use it.

Openssl SSL library can be used for CPU performance measurement from the ssh console. That is mostly about crypto performance, but it gives good view to generic CPU power.

See wiki for cmdline to copy-paste and results


Coremark can be built with a multi-threading feature.

root@GT-AC5300:~# coremark
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 18454
Total time (secs): 18.454000
Iterations/Sec   : 5960.767313
Iterations       : 110000
Compiler version : GCC12.3.0
Compiler flags   : -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab=coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab -flto=auto -fno-fat-lto-objects -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O3   -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x33ff
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 5960.767313 / GCC12.3.0 -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab=coremark-d5fad6bd094899101a4e5fd53af7298160ced6ab -flto=auto -fno-fat-lto-objects -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O3   -lrt / Heap