JetBrains-Research / JetBrains-Research/viktor

Test the impact of memory alignment

Open
#32 0 comments 0 reactions 1 assignee Claimed by @dievsky View on GitHub
enhancement
Dominant language
Kotlin
Stars
141
Forks
7
PR merge metrics
No merged PRs in 30d

Description

We could devise a simple enough benchmark to test the impact of alignment on element-by-element operations (e.g addition).

Take a `DoubleArray` and generate four `F64Array`s with different alignments (starting at element 0, 1, 2, 3). Then benchmark adding each of them to another, fixed `F64Array`. We should see a spike in throughput where alignments coincide.

(This, however, would only be valid if the garbage collector doesn't move the array around between benchmark iterations and shift the alignment.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.