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

Swift 6 language mode support needed #258

Open hassila opened 5 months ago

hassila commented 5 months ago

let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> ()' may have shared mutable state

t089 commented 1 month ago

~What is the workaround here?~

Use explicit type:

let benchmarks : @Sendable () -> Benchmark? = {
toffaletti commented 1 month ago

If you have many Benchmark:

let benchmarks : @Sendable () -> Void = {