rust-lang/rust-analyzer

Benchmark with different allocators

Aberta

#1.441 aberto em 26 de jun. de 2019

 (8 comentários) (2 reações) (0 responsável)Rust (1.726 forks)batch import
E-hardfungood first issue

Métricas do repositório

Stars
 (14.924 estrelas)
Métricas de merge de PR
 (Mesclagem média 11d 5h) (96 fundiu PRs em 30d)

Description

The recent paper about https://github.com/microsoft/mimalloc sounds too good to be true.

It might be a good idea to compare different allocators to see if there are some memory usage wins to have. Better perf would also be helpful, but memory usage is the most important thing

Here's the couple of benchmarks that should be representative (you can use any other large project instead of chalk, for example, rust-analyzer itself):

cargo run --package ra_cli --release -- analysis-bench ../chalk/ --complete ../chalk/chalk-engine/src/logic.rs:94:0
cargo run --package ra_cli --release -- analysis-stats ../chalk

I think /usr/bin/time could be used to compare both time and memory (rss)?

We need to compare at least:

  • jemalloc
  • mimalloc
  • system allocator (bonus points if you check with different OSes)

Guia do colaborador