pub macro bench($item:item) {
    ...
}
🔬 This is a nightly-only experimental API. (test)
Expand description

Attribute macro applied to a function to turn it into a benchmark test.