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

Native zig benchmarks #4

Open
dweiller opened this issue Jul 30, 2023 · 0 comments
Open

Native zig benchmarks #4

dweiller opened this issue Jul 30, 2023 · 0 comments

Comments

@dweiller
Copy link
Owner

dweiller commented Jul 30, 2023

The initial goal of zimalloc is to provide a good Zig-native general purpose allocator. For this, it would be best to have benchmarks written in Zig that use zimalloc as a normal Zig module, rather than using libzimalloc to override malloc in other pre-existing benchmarks. Benchmarking against other libc malloc replacements by using libzimalloc does not directly measure performance for the primary intended use case and should be negatively impacting performance due to the malloc API requiring the allocator to track additional allocation metadata.

The simplest solution would be to port existing allocator benchmarks to Zig. These can then be used to compare zimalloc to other allocators using c_allocator and LD_PRELOAD.

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

No branches or pull requests

1 participant