Skip to content

Closes #4606 benchmark v2/reformat benchmark results.py to parse all benchmark results - #4751

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
ajpotts:4606_benchmark_v2/reformat_benchmark_results.py_to_parse_all_benchmark_results
Aug 5, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
ajpotts:4606_benchmark_v2/reformat_benchmark_results.py_to_parse_all_benchmark_results

Conversation

@ajpotts

@ajpotts ajpotts commented Jul 29, 2025 •

Copy link
Copy Markdown
Contributor

This PR moves the generation of field lookup map to a separate script benchmark_v2/generate_field_lookup_map.py. This will enable the map to be regenerated only when there are major code changes, rather than with each benchmark run.

It also adds field parsing for most of the benchmarks. The few remaining (flatten, split, multiIO) will be handled in a separate PR as they require extra work.

Additionally, the tranfer_rate field was changed to float (rather than string) type in order to match the form expected in the results.

Closes #4606 benchmark v2/reformat benchmark results.py to parse all benchmark results

@ajpotts
ajpotts force-pushed the 4606_benchmark_v2/reformat_benchmark_results.py_to_parse_all_benchmark_results branch 2 times, most recently from 523a376 to ba8c652 Compare July 29, 2025 14:49
@ajpotts
ajpotts marked this pull request as ready for review July 29, 2025 16:38
@ajpotts ajpotts changed the title 4606 benchmark v2/reformat benchmark results.py to parse all benchmark results Closes #4606 benchmark v2/reformat benchmark results.py to parse all benchmark results Jul 30, 2025
@ajpotts
ajpotts force-pushed the 4606_benchmark_v2/reformat_benchmark_results.py_to_parse_all_benchmark_results branch from ba8c652 to 4647ede Compare July 30, 2025 00:09
@vasslitvinov

Copy link
Copy Markdown
Contributor

# units are GiB/sec:
benchmark.extra_info["transfer_rate"] = float((numBytes / benchmark.stats["mean"]) / 2**30)

This may not be worth changing at this point, however I thought that extra_info should record the number of bytes as an int. Then the infrastructure can calculate the transfer rate based on stats["mean"]. Or maybe there is no good place in the infrastructure to add this calculation.

@vasslitvinov vasslitvinov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would love to see a comment or a docstring, perhaps at the top of generate_field_lookup_map, listing the inputs and the output(s) of the script, what the field lookup map contains and how it is used.

@1RyanK 1RyanK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment thread benchmark_v2/io_benchmark.py Resolved
Comment thread benchmark_v2/scan_benchmark.py Resolved
Comment thread benchmark_v2/scatter_benchmark.py Resolved
Comment thread benchmark_v2/io_benchmark.py Resolved
Comment thread benchmark_v2/in1d_benchmark.py Resolved
Comment thread benchmark_v2/groupby_benchmark.py Resolved
Comment thread benchmark_v2/gather_benchmark.py Resolved
@ajpotts
ajpotts force-pushed the 4606_benchmark_v2/reformat_benchmark_results.py_to_parse_all_benchmark_results branch from 4647ede to f650133 Compare August 4, 2025 20:11
@ajpotts

ajpotts commented Aug 4, 2025

Copy link
Copy Markdown
Contributor Author

@vasslitvinov I added a comment at the top of generate_field_lookup_map. Let me know what you think.

@ajpotts

ajpotts commented Aug 4, 2025

Copy link
Copy Markdown
Contributor Author

I can look at changing how the num_bytes is recorded in this ticket: #4765

@ajpotts
ajpotts force-pushed the 4606_benchmark_v2/reformat_benchmark_results.py_to_parse_all_benchmark_results branch from f650133 to 7c111e9 Compare August 5, 2025 15:23
@ajpotts
ajpotts added this pull request to the merge queue Aug 5, 2025
Merged via the queue into Bears-R-Us:main with commit fb262a8 Aug 5, 2025
drculhane pushed a commit to drculhane/arkouda that referenced this pull request Aug 20, 2025
…parse all benchmark results (Bears-R-Us#4751)

This PR moves the generation of field lookup map to a separate script
`benchmark_v2/generate_field_lookup_map.py`. This will enable the map to
be regenerated only when there are major code changes, rather than with
each benchmark run.

It also adds field parsing for most of the benchmarks. The few remaining
(flatten, split, multiIO) will be handled in a separate PR as they
require extra work.

Additionally, the `tranfer_rate` field was changed to float (rather than
string) type in order to match the form expected in the results.

Closes Bears-R-Us#4606 benchmark v2/reformat benchmark results.py to parse all
benchmark results

Co-authored-by: ajpotts <[email protected]>
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.

benchmark_v2/reformat_benchmark_results.py to parse all benchmark results.

3 participants