ordo-one / package-benchmark

Swift benchmark runner with many performance metrics and great CI support
Apache License 2.0
326 stars 25 forks source link

blackHole() does not work as expected #178

Closed hassila closed 1 year ago

hassila commented 1 year ago

It seems WMO is nerfing it, see https://github.com/apple/swift/commit/1fceeab71e79dc96f1b6f560bf745b016d7fcdcf

We need to use:

@_semantics("optimize.no.crossmodule")
hassila commented 1 year ago

Fixed by #179