Mir MYC-YT507 development board review: performance test one coremark running score
[Copy link]
Preface
CoreMark is a benchmark program used in embedded systems to measure CPU performance. The standard was proposed by Shay Gal-On of the EEMBC (Embedded Microprocessor Benchmark Consortium) in 2009, and attempts were made to develop it into an industrial standard to replace the old Dhrystone standard. Compared with Dhrystone, CoreMark avoids the differences caused by different compilers.
Preparing the code
Open a terminal in WSL
git clone
cd coremark/
vi simple/core_portme.h
Revise
#define COMPILER_FLAGS \
FLAGS_STR /* "Please put compiler flags here (eg -o3)" */
#endif
for
#define COMPILER_FLAGS \
"-O3" /* "Please put compiler flags here (eg -o3)" */
#endif
If you compile with -O0, change it to "-O0"
typedef ee_u32 ee_ptr_int;
Change to
typedef unsigned long ee_ptr_int;
Compile
export PATH=$PATH:~/MYD-YT507H/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin
Compile
aarch64-linux-gnu-gcc -o coremarko3 core_list_join.c core_main.c core_matrix.c core_state.c core_util.c simple/core_portme.c -DPERFORMANCE_RUN=1 -DITERATIONS=100000 -Isimple -I. -O3
-O0 compilation is changed to
aarch64-linux-gnu-gcc -o coremarko0 core_list_join.c core_main.c core_matrix.c core_state.c core_util.c simple/core_portme.c -DPERFORMANCE_RUN=1 -DITERATIONS=100000 -Isimple -I. -O0
run
Copy the program to Windows
cp coremarko3 /mnt/e
cp coremarko0 /mnt/e
Import the program to the development board under Windows
chmod +x coremarko3
chmod +x coremarko0
./coremarko0
./coremarko3
The results are as follows
-O0 803.034513
-O3 4093.788532
You can see that the optimization level has a huge impact.
Results comparison
You can view the scores of the corresponding processors from the following address.
https://www.eembc.org/coremark/scores.php
The configuration is similar to imx8M, both are 1.5G, 4-core CORTEX-A53.
Imx8M score is 19678.58
Here it is 4093.788532x4=16375.154128, which is not much different.
Since it runs an operating system and a graphical interface, the score for running on a bare metal machine will actually be higher.
refer to
https://www.eembc.org/coremark/
|