BurntSushi / quickcheck

Automated property based testing for Rust (with shrinking).
The Unlicense
2.32k stars 144 forks source link

debug_reprs taking up 41% of test runtime #303

Open davidrusu opened 2 years ago

davidrusu commented 2 years ago

It seems like we're formatting the test case arguments even on passing test runs, e.g. here is the flamegraph of a test run where the test passed, but we see 41% of runtime spent building up debug_reprs.

image

Does this make sense to you? do you see a way of modifying the test runner to only render the debug representation on failure?

BurntSushi commented 2 years ago

I'm not sure off the top of my head and this isn't high on my priority list. I would encourage you to investigate.

davidrusu commented 2 years ago

I think I have a solution in #304