RepositoryAssembly
camel-cdr

camel-cdr/rvv-bench

A collection of RISC-V Vector (RVV) benchmarks to help developers write portably performant RVV code

158stars
36forks
7issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: risc-v

#1 Repository of the month

1
TINIX TRENDING·Topic: rvv

#1 Repository of the month

1
TINIX TRENDING·Topic: rvv

#1 Repository of the month

RISC-V Vector benchmark

A collection of RISC-V Vector (RVV) benchmarks to help developers write portably performant RVV code.

Benchmark results can be found at: https://camel-cdr.github.io/rvv-bench-results

Benchmarks (./bench/)

Contains a bunch of benchmark of different implementations of certain algorithms.

Instruction cycle count (./instructions/)

Measures the cycle count of RVV instructions by unrolling and looping over the given instruction repeatedly.

Quick start

The easiest way to run the benchmarks is using the ./bench-all.sh script.

Getting started for developers

Start by configuring ./config.mk and ./run.sh.

To get access to the cycle performance counter on Linux, /proc/sys/kernel/perf_user_access and /proc/sys/kernel/perf_event_paranoid need to be configured.

perf_event_paranoid should have a value <=2.

perf_user_access should be set to "2" and -DUSE_PERF_EVENT appended to the CFLAGS in ./config.mk. If this doesn't work, set perf_user_access to "1" and use -DUSE_PERF_EVENT_SLOW.

You can adjust the benchmark runtime and precision by modifying the config.h files in each directory.

Running benchmarks (./bench/)

To run the benchmarks, first look through (./bench/config.h) and adjust it to your processor (e.g. set HAS_E64). If it takes too long to execute, try lowering MAX_MEM, which is used to scale the benchmark, and play around with the other constants until it executes in a reasonable amount of time and gives a relatively smooth graph.

Now you can just run the benchmarks using make run in the (./bench/) directory, or make to just build the executables.

Measuring cycle count (./instructions/)

To run the cycle count measurement, first configure instructions/rvv/config.h to your processor.

Now you can run the measurement using make run in the (./instructions/rvv/) directory, or make to just build the executables.

For XTheadVector use the (./instructions/xtheadvector/) directory instead. (this isn't maintained anymore)

Contributing

Here are some suggestions of things that still need to be done.

  • contribute a measurement of a new CPU to: https://github.com/camel-cdr/rvv-bench-results
    You can just create an issue with a single json file, which contains all concatenated ./bench/ results. (after proper setup, make run > out.json should do the trick). \
  • implement non memory bound benchmarks
  • implement more benchmarks
  • better cycle count measurements: throughput vs latency (also: can we figure out the execution port configuration?)
  • cycle count for load/stores
  • cycle count for vsetvl

License

This repository is licensed under the MIT LICENSE.

Similar Projects

Discover other similar projects and AI models.

RepositoryAssembly
openhwfoundation/cva6

The CORE-V CVA6 is a highly configurable, 6-stage RISC-V core for both application and embedded applications. Application class configurations are capable of booting Linux.

3.2k
Nov 30, 2026
RepositoryAssembly
openhwfoundation/core-v-verif

Functional verification project for the CORE-V family of RISC-V cores.

743
Nov 23, 2026
RepositoryAssembly
ucb-bar/saturn-vectors

Chisel RISC-V Vector 1.0 Implementation

162
Dec 1, 2026
RepositoryRust
sharkdp/hyperfine

A command-line benchmarking tool

29.4k
Nov 1, 2026
RepositoryPython
zalandoresearch/fashion-mnist

A MNIST-like fashion product database. Benchmark :point_down:

12.9k
Jun 13, 2022
RepositoryC
RT-Thread/rt-thread

RT-Thread is an open source IoT Real-Time Operating System (RTOS). https://rt-thread.github.io/rt-thread/

12.4k
Nov 29, 2026
RepositoryC#
dotnet/BenchmarkDotNet

Powerful .NET library for benchmarking

11.5k
Dec 1, 2026
RepositoryRust
hatoo/oha

Ohayou(おはよう), HTTP load generator, inspired by rakyll/hey with tui animation.

10.8k
Nov 18, 2026
RepositoryC++
google/benchmark

A microbenchmark support library

10.5k
Nov 30, 2026