mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: The init() of all benchmarks will execute, even when we filter a benchmark run down to a single benchmark. We should avoid doing heavy work there, because it can confuse us when we look at traces elsewhere. Modifications: - Move some heavy work in the huffman benchmark base64 decode out of init(). - Prevent setUp() and tearDown() from running if a test is filtered out. - Avoid even creating benchmarks unless they're filtered in. Result: Less confusing benchmark traces.