quickcheck icon indicating copy to clipboard operation
quickcheck copied to clipboard

debug_reprs taking up 41% of test runtime

Open davidrusu opened this issue 3 years ago • 2 comments

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?

davidrusu avatar Dec 30 '21 01:12 davidrusu

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.

BurntSushi avatar Dec 30 '21 02:12 BurntSushi

I think I have a solution in #304

davidrusu avatar Dec 30 '21 04:12 davidrusu