Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
criterion::black_box - Rust
[go: Go Back, main page]

[][src]Function criterion::black_box

pub fn black_box<T>(dummy: T) -> T

A function that is opaque to the optimizer, used to prevent the compiler from optimizing away computations in a benchmark.

This variant is stable-compatible, but it may cause some performance overhead or fail to prevent code from being eliminated.