tari-project / triptych

BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

test: avoid compiler optimization of benchmarks #31

Closed AaronFeickert closed 9 months ago

AaronFeickert commented 9 months ago

It's generally possible for the compiler to optimize benchmarks, which is not what we want.

This PR puts each benchmark operation in a black_box wrapper to (attempt to) avoid this.

AaronFeickert commented 9 months ago

After further investigation, it appears that the wrapper is already applied.