Add allocation_binary_trees benchmark#118
Open
danvinci wants to merge 16 commits intoJuliaLang:masterfrom
Open
Add allocation_binary_trees benchmark#118danvinci wants to merge 16 commits intoJuliaLang:masterfrom
danvinci wants to merge 16 commits intoJuliaLang:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
allocation_binary_trees- a memory-allocation / traversal benchmark - implemented similarly across all 14 languages.Each iteration builds a complete binary tree of depth 14 (16,383 nodes), traverses it to compute a node-count checksum, and frees it. 25 iterations per timed window, NITER=5, taking minimum.
Each language uses its idiomatic allocation strategy:
malloc/freein C,new/GC in Java/Go/JS/Swift/Scala, structs in Julia/Rust, dicts/lists in Python/Numba/R/Octave, tables in Lua, allocatable types in Fortran.The existing 8 benchmarks are mostly numeric / BLAS-leaning; this one probes a dimension where allocation strategy and GC dominate timing.
bt_sum == 25 * (2^14 - 1) * NITERverifies each tree builderTest plan
lang,allocation_binary_trees,time_msreportjob (aggregation + deploy) passesDrafted with assistance from Claude Opus 4.7.