Skip to content

Conversation

@Bromeon
Copy link
Member

@Bromeon Bromeon commented Nov 1, 2025

Allows to have logic before and after the benchmarked logic, for setup/teardown phases:

#[bench(manual)]
fn my_benchmark() -> BenchResult {
    let heavy = expensive_but_uninteresting_computation();

    bench_measure(1, || heavy.interesting_op())
}

@Bromeon Bromeon added quality-of-life No new functionality, but improves ergonomics/internals c: tooling CI, automation, tools labels Nov 1, 2025
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1390

@Bromeon Bromeon enabled auto-merge November 1, 2025 14:42
@Bromeon Bromeon added this pull request to the merge queue Nov 1, 2025
Merged via the queue into master with commit bbd113a Nov 1, 2025
20 checks passed
@Bromeon Bromeon deleted the qol/bench-setup branch November 1, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: tooling CI, automation, tools quality-of-life No new functionality, but improves ergonomics/internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants