Benchmark code: https://codeberg.org/rpkak/zig-memset-bench
Use these benchmark results from a AMD Ryzen 5 7640U or your own benchmark results with the plot.py to see the benchmark graph.
Here are also images, but use the plot.py with the python packages matplotlib and e.g. PyQt6 installed, to better zoom into the graph to be less distracted by e.g. glibc being slow at memseting 0 bytes.
plot.py with the python packages matplotlib and e.g. PyQt6 installed, to better zoom into the graph to be less distracted by e.g. glibc being slow at memseting 0 bytes.short_unaligned_uncached:
short_unaligned_uncached
short_unaligned_cached:
short_unaligned_cached
short_aligned_uncached:
short_aligned_uncached
short_aligned_cached:
short_aligned_cached
long_unaligned_uncached:
long_unaligned_uncached
long_unaligned_cached:
long_unaligned_cached
long_aligned_uncached:
long_aligned_uncached
long_aligned_cached:
long_aligned_cached
alternative to #35723
closes #32091
Edit: This now also removes __memset and fixes the function arg type of memset and __memset_chk.