Skip to content

Only build debug representations of arguments on failing tests#304

Merged
jhpratt merged 1 commit into
BurntSushi:masterfrom
davidrusu:only-build-debug-reprs-on-failure
Mar 6, 2025
Merged

Only build debug representations of arguments on failing tests#304
jhpratt merged 1 commit into
BurntSushi:masterfrom
davidrusu:only-build-debug-reprs-on-failure

Conversation

@davidrusu
Copy link
Copy Markdown
Contributor

@davidrusu davidrusu commented Dec 30, 2021

fixes #303

This cuts my prop test run-times nearly in half!

Here's the new flamegraph showing nearly 70% of time spent in test, previously this was 40%.

image
compare to prior run:
image

@davidrusu davidrusu changed the title Only build debug representations of arguments even on failing tests Only build debug representations of arguments on failing tests Dec 30, 2021
@davidrusu
Copy link
Copy Markdown
Contributor Author

@BurntSushi this change nets us a 50% reduction in quickcheck's overhead

It's a fairly small change, so hopefully quick to review. I'd love to see it merged in soon.

@neithernut
Copy link
Copy Markdown
Contributor

neithernut commented Jan 12, 2022

There are bug-fixes pending for months. I wouldn't get my hopes up.

@dan-da
Copy link
Copy Markdown

dan-da commented Jan 15, 2022

+1 for getting this merged asap. else I'll need to start referencing @davidrusu's fork in our crates instead.

@niyaznigmatullin
Copy link
Copy Markdown

+1 is there anyone who wants to maintain this crate, probably we ask @BurntSushi to give rights or just use some other fork, @davidrusu's for instance, to continue developing this. The same is with crates.io, we could just create another crate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

debug_reprs taking up 41% of test runtime

5 participants