Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce BenchmarkConfig to selectively use config in benchmark #414

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

PragTob
Copy link
Member

@PragTob PragTob commented Dec 18, 2023

Fixes #412 - but basically the Config holds inputs and that can be a hell loat of data to send along with every benchmark.

In a benchmark with 16 scenarios and huge inputs we now save ourselves copying that potentially huge data structure a whopping 16 times to our benchmarking processes for no reason whatsoever (the scenarios already hold the input).

Fixes #412 - but basically the `Config` holds `inputs` and that
can be a hell loat of data to send along with every benchmark.

In a benchmark with 16 scenarios and huge inputs we now save
ourselves copying that potentially huge data structure a whopping
16 times to our benchmarking processes for no reason whatsoever
(the scenarios already hold the `input`).
@PragTob PragTob merged commit a572b66 into main Dec 18, 2023
44 checks passed
@PragTob PragTob deleted the minimize-benchmark-data branch December 18, 2023 09:23
PragTob added a commit that referenced this pull request Dec 19, 2023
This reverts commit dfa6987.

It turned out that the parallel processing wasn't the issue
with memory consumption we faced but instead copying data
to processes.

See:
* #408
* #414
* https://pragtob.wordpress.com/2023/12/18/careful-what-data-you-send-or-how-to-tank-your-performance-with-task-async/
PragTob added a commit that referenced this pull request Dec 19, 2023
This reverts commit dfa6987.

It turned out that the parallel processing wasn't the issue
with memory consumption we faced but instead copying data
to processes.

See:
* #408
* #414
* https://pragtob.wordpress.com/2023/12/18/careful-what-data-you-send-or-how-to-tank-your-performance-with-task-async/
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.

Avoid handing all of inputs to every scenario process
1 participant