martinus / nanobench

Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20
https://nanobench.ankerl.com
MIT License
1.43k stars 82 forks source link

RISC-V Performance Counters #65

Closed asm-sc closed 2 years ago

asm-sc commented 2 years ago

Supported several performance counters for RISC-V benchmarking Instead of LinuxPerformanceCounters in calculations used RiscvPerformanceCounters class. It contain similar logic, additionaly including RISC-V cycle and instret instuctions calls involved in performance measuring