Skip to content
Branch: master
Find file History
dependabot-preview Bump ring from 0.16.5 to 0.16.7
Bumps [ring](https://github.com/briansmith/ring) from 0.16.5 to 0.16.7.
- [Release notes](https://github.com/briansmith/ring/releases)
- [Commits](https://github.com/briansmith/ring/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Latest commit 2f23376 Aug 13, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src Bump POST payload limit to 10MB Jul 28, 2019
static
.gitignore
Cargo.toml
LICENSE.md Move rustc-perf repo into `site` directory. Sep 2, 2017
README.md Fix invalid startup command for site Jul 19, 2019

README.md

rustc-perf

This is the website for Rust compiler performance monitoring. The website contains a backend to process the raw data and expose it to the frontend, which displays graphs to the user.

https://github.com/rust-lang-nursery/rustc-timing contains the raw data from which rustc-perf pulls.

Setup

Apache can also be omitted from the setup, in which case the backend will function normally on either port 2346, or the port given by the environment variable PORT.

sudo apt-get install apache2 git
git clone https://github.com/rust-lang-nursery/rustc-perf.git /var/www/html/
cd /var/www/html/rustc-perf
git clone https://github.com/rust-lang-nursery/rustc-timing.git data

The following lines in /etc/apache2/sites-enabled/000-default.conf allow the frontend in its current configuration to get data from the API.

The proxy_http module also needs to be enabled, which can be done via a2enmod proxy_http.

    ProxyPass / http://localhost:2346
    ProxyPassReverse / http://localhost:2346

The backend currently depends on a POST request being sent to the /perf/onpush URL (with above configuration) when new data is made available in the timings repo. This will intiate a git pull in the timings repo directory passed on startup.

Launching

Note that this binary expects its static files under /site/static not /static. It is meant to be run from the root of this repository, not the site directory. It can be run with the following command from root-dir:

cargo run --bin site --release data

The release flag is on purpose, reducing startup time ~80%.

The first time you do this the Rust repo is cloned, so it will take a minute or two (or more if you have a slow internet connection) before the web server starts up.

You can’t perform that action at this time.