duesee / imap-codec

Rock-solid and complete codec for IMAP
Apache License 2.0
35 stars 13 forks source link

tests: Improve fuzzing throughput #329

Closed duesee closed 4 months ago

duesee commented 11 months ago

Over the time, fuzzing throughput decreased. This is due to more complex Arbitrary implementations. Notably, BodyStructure, SearchKey, Thread, ... We probably want to test these in isolation at some point.

duesee commented 4 months ago

response_to_bytes_and_back_flamegraph

duesee commented 4 months ago

Feature-gating the more complex Arbitrary implementations increases fuzzing throughput by a factor of 4 to 5. We should still improve the implementations. But keeping the feature seems like a good idea.