Skip to content

Implement allocation fast path for Immix#93

Open
peterzhu2118 wants to merge 1 commit into
mainfrom
post-alloc-fast-path
Open

Implement allocation fast path for Immix#93
peterzhu2118 wants to merge 1 commit into
mainfrom
post-alloc-fast-path

Conversation

@peterzhu2118

Copy link
Copy Markdown
Member

This commit implements a fast path that inlines mmtk_post_alloc for Immix. The benchmark results show a decent speed up in allocation performance.

GC.disable

i = 0
while i < 10_000_000
  Object.new
  i += 1
end

Before:

Time (mean ± σ):     506.3 ms ±   5.0 ms    [User: 442.8 ms, System: 108.8 ms]
Range (min … max):   497.8 ms … 513.2 ms    10 runs

After:

Time (mean ± σ):     473.9 ms ±   2.4 ms    [User: 409.4 ms, System: 108.8 ms]
Range (min … max):   470.4 ms … 478.1 ms    10 runs

This commit implements a fast path that inlines mmtk_post_alloc for Immix.
The benchmark results show a decent speed up in allocation performance.

    GC.disable

    i = 0
    while i < 10_000_000
      Object.new
      i += 1
    end

Before:

    Time (mean ± σ):     506.3 ms ±   5.0 ms    [User: 442.8 ms, System: 108.8 ms]
    Range (min … max):   497.8 ms … 513.2 ms    10 runs

After:

    Time (mean ± σ):     473.9 ms ±   2.4 ms    [User: 409.4 ms, System: 108.8 ms]
    Range (min … max):   470.4 ms … 478.1 ms    10 runs
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