The current memory allocator seems to have a performance issue:
I've created a test with a 3MiB Json serialization that illustrates the issue:
https://github.com/jounathaen/hermit-allocator-json-test
Allocator |
average runtime |
host |
8.00ms |
talc |
4748.54ms |
bump |
28.57ms |
galloc |
29.98ms |
(talc is more than 150x slower than galloc in this scenario)
The alternative allocators are implemented here: