Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

benchmarking #1

Open
linsinan1995 opened this issue Apr 7, 2022 · 0 comments
Open

benchmarking #1

linsinan1995 opened this issue Apr 7, 2022 · 0 comments

Comments

@linsinan1995
Copy link
Owner

linsinan1995 commented Apr 7, 2022

rv32imc (relative and absolute size)
image

Benchmark            size
---------            ----
aha-mont64          1,082
crc32                 228
cubic               2,514
edn                 1,488
huffbench           1,814
matmult-int           452
md5sum                942
minver              1,180
nbody                 968
nettle-aes          2,800
nettle-sha256       5,570
nsichneu           15,964
picojpeg            8,480
primecount            222
qrduino             6,268
sglib-combined      2,556
slre                2,590
st                  1,006
statemate           3,714
tarfind               490
ud                    760
wikisort            4,492
---------           -----
Geometric mean      1,687
Geometric SD            2.99
Geometric range  4,485.0811275848
All benchmarks sized successfully

rv32im_zca_zcb_zcmp
image

ute
Benchmark            size
---------            ----
aha-mont64          1,020
crc32                 212
cubic               2,314
edn                 1,390
huffbench           1,718
matmult-int           410
md5sum                870
minver              1,042
nbody                 830
nettle-aes          2,614
nettle-sha256       5,502
nsichneu           15,986
picojpeg            7,746
primecount            224
qrduino             5,634
sglib-combined      2,370
slre                2,326
st                    850
statemate           3,662
tarfind               462
ud                    730
wikisort            4,094
---------           -----
Geometric mean      1,567
Geometric SD            3.01
Geometric range  4,195.47342279375
All benchmarks sized successfully

rv32im_zca_zcb_zcmp_zcmt_zicsr
image

Benchmark            size
---------            ----
aha-mont64          1,020
crc32                 212
cubic               2,278
edn                 1,378
huffbench           1,706
matmult-int           414
md5sum                858
minver              1,042
nbody                 830
nettle-aes          2,584
nettle-sha256       5,466
nsichneu           15,708
picojpeg            7,510
primecount            224
qrduino             5,562
sglib-combined      2,322
slre                2,306
st                    846
statemate           3,606
tarfind               454
ud                    722
wikisort            3,986
---------           -----
Geometric mean      1,552
Geometric SD            2.99
Geometric range  4,122.089052180286
All benchmarks sized successfully

reproduce

RISCV32ZCMT=/home/linsinan/gnu/riscv-gnu-toolchain/obj-rv32g_zca_zcb_zcmp_zcmt

RVMARCH=rv32im_zca_zcb_zcmp_zcmt_zicsr

./build_all.py -v --arch riscv32 --chip generic --board ri5cyverilator --cc $RISCV32ZCMT/bin/riscv32-unknown-elf-gcc --cflags="-c -march=$RVMARCH -mabi=ilp32 -Os -ffunction-sections -fdata-sections" --ldflags="-Wl,-gc-sections -march=$RVMARCH -mabi=ilp32 -Os --specs=nosys.specs --specs=nano.specs -nostartfiles"  --dummy-libs="crt0 libc libgcc libm" --clean

python3 benchmark_size.py # --absolute

ref: embench/embench-iot#94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant