buddy-compiler / buddy-benchmark

Benchmark Framework for Buddy Projects
Apache License 2.0
44 stars 34 forks source link

[OSPP] MatMul and Conv2d optimization benchmark. #47

Closed WLFJ closed 1 year ago

WLFJ commented 1 year ago

MatMul benchmark result

by running:

./build/bin/gemm-benchmark | python3 scripts/gflops.py

image

Conv2dNchwFchw benchmark result

by running:

./build/bin/conv2d-benchmark | python3 scripts/gflops.py

image

Note

Benchmark also have correctness checking, Conv2d is enabled by default and MatMul not. If you want to make benchmark running faster, just remove #define OP_TEST in benchmarks/OpOptimization/Conv2dNchwFchw/MLIROptBenchmark.cpp.