rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.16k stars 1.58k forks source link

Publish benchmarks to github pages #492

Closed matklad closed 4 years ago

matklad commented 5 years ago

Deno has this swee:cake::cake::cake:eet page with benchmarks over here: https://deno.land/benchmarks.

I believe they are published automatically by travis: https://github.com/denoland/deno/blob/904c69c4c654e4b55fd2f46a063dc995cbe00e41/.travis.yml#L93

It would be tool to have something like this set up, though not pressing. Here's a great example for the benchmark: https://github.com/rust-analyzer/rust-analyzer/pull/489#discussion_r246931777

Here's the stuff we might want to measure:

Technically, we should run benchmarking on master branch, as a cron-job.

matklad commented 4 years ago

This is how I imagine this should work:

{
  "meta": { time: "${date}", sha1: "${git rev-parse HEAD}" , machine: "${OS, CPU, RAM}" },
  "measurements:" { "name": value }
}

Spearatelly, a /benchmarks page should be created on https://rust-analyzer.github.io/ to fetch and show this data with JavaScript.

matklad commented 4 years ago

fixed