What is the best way to setup Criterion to benchmark a mixed rust/python project?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/rust

Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • JetBrains - Developer Ecosystem Survey 2022
  • Scout APM - Less time debugging, more time building
  • album-art-wallpaper

    An app for Windows that will change your desktop wallpaper to the album art of the song you are listening to.

    I'm using Maturin to build my rust code into a python module. I am using a structure similar to this and here's my repo without benchmarking.

  • maturin

    Build and publish crates with pyo3, rust-cpython and cffi bindings as well as rust binaries as python packages

    I'm using Maturin to build my rust code into a python module. I am using a structure similar to this and here's my repo without benchmarking.

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • polylabel-pyo3

    Polylabel algorithm (Python wheel for polylabel-rs)

    If it doesn't need to be criterion, I'd go for pytest-benchmark. This project has a full fledged CI for that: https://github.com/MoonVision/polylabel-pyo3/tree/main/benchmarks

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts