Skip to content

Instantly share code, notes, and snippets.

@fwsGonzo
Last active January 10, 2024 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fwsGonzo/7ef100ba4fe7116e97ddb20cf26e6879 to your computer and use it in GitHub Desktop.
Save fwsGonzo/7ef100ba4fe7116e97ddb20cf26e6879 to your computer and use it in GitHub Desktop.
CoreMark: libriscv w/binary translation, Ryzen 7950X
-== 32-bit ==-
$ VERBOSE=1 ./rvlinux ~/github/coremark/coremark-rv32g_b
* Loading program of size 75145 from 0x7faed667c010 to virtual 0x10000
* Program segment readable: 1 writable: 0 executable: 1
* Loading program of size 1864 from 0x7faed668e59c to virtual 0x2358c
* Program segment readable: 1 writable: 1 executable: 0
* Entry is at 0x109f4
2K performance run parameters for coremark.
CoreMark Size : 666
Total ticks : 14304
Total time (secs): 14.304000
Iterations/Sec : 13982.102908
Iterations : 200000
Compiler version : GCC13.2.0
Compiler flags : -O3 -DPERFORMANCE_RUN=1
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 : 0x4983
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 13982.102908 / GCC13.2.0 -O3 -DPERFORMANCE_RUN=1 / Static
>>> Program exited, exit code = 0 (0x0)
Instructions executed: 90323242667 Runtime: 22474.750ms Insn/s: 4019mi/s
Pages in use: 25 (100 kB virtual memory, total 319 kB)
-== 64-bit ==-
$ VERBOSE=1 ./rvlinux ~/github/coremark/coremark-rv64g_b
* Loading program of size 67537 from 0x7fbee9239010 to virtual 0x10000
* Program segment readable: 1 writable: 0 executable: 1
* Loading program of size 3072 from 0x7fbee924a010 to virtual 0x21000
* Program segment readable: 1 writable: 1 executable: 0
* Entry is at 0x10a94
2K performance run parameters for coremark.
CoreMark Size : 666
Total ticks : 16027
Total time (secs): 16.027000
Iterations/Sec : 12478.941786
Iterations : 200000
Compiler version : GCC13.2.0
Compiler flags : -O3 -DPERFORMANCE_RUN=1
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 : 0x4983
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 12478.941786 / GCC13.2.0 -O3 -DPERFORMANCE_RUN=1 / Static
>>> Program exited, exit code = 0 (0x0)
Instructions executed: 94401894160 Runtime: 24962.750ms Insn/s: 3782mi/s
Pages in use: 23 (92 kB virtual memory, total 287 kB)
@fwsGonzo
Copy link
Author

fwsGonzo commented Nov 13, 2023

Without binary translation:

$ ./rvlinux ~/github/coremark/coremark-rv32g_b 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 11586
Total time (secs): 11.586000
Iterations/Sec   : 3452.442603
Iterations       : 40000
Compiler version : GCC13.2.0
Compiler flags   : -O3 -DPERFORMANCE_RUN=1  
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      : 0x25b5
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 3452.442603 / GCC13.2.0 -O3 -DPERFORMANCE_RUN=1   / Static
>>> Program exited, exit code = 0 (0x0)
Instructions executed: 14838580227  Runtime: 14949.089ms  Insn/s: 993mi/s
Pages in use: 25 (100 kB virtual memory, total 462 kB)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment