feat: set up codspeed (#13372)

This commit is contained in:
DaniPopes
2024-12-20 13:21:51 +02:00
committed by GitHub
parent 3966130844
commit a4f86b0e2d
34 changed files with 318 additions and 398 deletions

View File

@ -1,10 +1,10 @@
#![allow(missing_docs)]
mod utils;
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use criterion::{criterion_group, criterion_main, Criterion};
use pprof::criterion::{Output, PProfProfiler};
use reth_libmdbx::{ffi::*, *};
use std::ptr;
use std::{hint::black_box, ptr};
use utils::*;
/// Benchmark of iterator sequential read performance.

View File

@ -1,11 +1,11 @@
#![allow(missing_docs, unreachable_pub)]
mod utils;
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use criterion::{criterion_group, criterion_main, Criterion};
use rand::{prelude::SliceRandom, SeedableRng};
use rand_xorshift::XorShiftRng;
use reth_libmdbx::{ffi::*, ObjectLength, WriteFlags};
use std::ptr;
use std::{hint::black_box, ptr};
use utils::*;
fn bench_get_rand(c: &mut Criterion) {