subsquid / worker-rs

GNU Affero General Public License v3.0
0 stars 1 forks source link

Consider mimalloc allocator #24

Closed eldargab closed 1 day ago

eldargab commented 1 week ago

https://github.com/subsquid/worker-rs/blob/17bbf99c7cd7c5f6529d4d34f059cbf88842cfb2/src/main.rs#L41

mimalloc consistently performs 15% better in query benchmarks on my M1 Mac compared to Jemalloc and system allocators.

eldargab commented 1 day ago

It seems I was wrong. Mimalloc tends to be few percents faster compared to Jemalloc, but everything is within a noise threshold.