Sha256: 4410ec73d277e7b54e9f306c00ff3b79a150d1832966b7fc29984c8e3ad8d57c

Contents?: true

Size: 396 Bytes

Versions: 38

Compression:

Stored size: 396 Bytes

Contents

use criterion::{criterion_group, criterion_main, Criterion};
use tracing::{span, Level};

mod shared;

fn bench(c: &mut Criterion) {
    shared::for_all_dispatches(&mut c.benchmark_group("enter_span"), |b| {
        let span = span!(Level::TRACE, "span");
        b.iter(|| {
            let _span = span.enter();
        })
    });
}

criterion_group!(benches, bench);
criterion_main!(benches);

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/tracing-0.1.41/benches/enter_span.rs
wasmtime-28.0.0 ./ext/cargo-vendor/tracing-0.1.41/benches/enter_span.rs
wasmtime-27.0.0 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-26.0.0 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-25.0.2 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-25.0.1 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-25.0.0 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-24.0.0 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-23.0.2 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-22.0.0 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-21.0.1 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-20.0.2 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-20.0.0 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-18.0.3 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-17.0.1 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-17.0.0 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-16.0.0 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-15.0.1 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-15.0.0 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs
wasmtime-14.0.4 ./ext/cargo-vendor/tracing-0.1.40/benches/enter_span.rs