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

JET suggested performance improvements and their benchmarking #107

Closed
wants to merge 20 commits into from

Conversation

BoZenKhaa
Copy link
Contributor

I was trying out JET.jl on MCTS.jl. This PR addresses some of the identified issues.

To see whether the problems were real, I set up additional benchmarks using BenchmarkTools.jl. In my testing, it seems the only impactful change is from removing the mutable keywords from structs. The rest could be removed from this PR in good conscience.

The overview of the benchmark of all the changes is below.
image
My benchmarking results for the notable commits and tuning parameters are at the bottom of the text.

Summary of the changes:

  • new benchmarking code in the benchmark folder
  • removal of the mutable keyword in several places
  • replacing some abstract types with concrete/parametric types
  • exposing sizehint as a keyword argument

I am not 100% sure about my methodology here; I may not be using JET or BenchmarkTools correctly, or I should be testing the algorithm with different parameters. It has been some time since I made these changes, but I only got around to benchmarking them and writing this PR today.

benchres_benchmarking-8e44d82c_2024-04-03_15-03-48.json
benchres_benchmarking-029dbe5c_2024-04-03_16-19-23.json
benchres_benchmarking-672fb8a1_2024-04-03_16-22-26.json
benchres_benchmarking-942aaf97_2024-04-03_16-15-53.json
benchres_benchmarking-1602105f_2024-04-03_15-34-02.json
benchres_benchmarking-b9859ef4_2024-04-03_15-18-25.json
benchres_benchmarking-ea84a858_2024-04-03_16-10-00.json
params.json

@BoZenKhaa
Copy link
Contributor Author

I discovered mistakes in this, I might try again later

@BoZenKhaa BoZenKhaa closed this Apr 16, 2024
@BoZenKhaa BoZenKhaa deleted the benchmarking branch April 16, 2024 12:26
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.

1 participant