tree: 13d1fec160d1af68a5c4b076ac62073a7e17402e [path history] [tgz]
  1. app/
  2. deployment-prod.yaml
  3. Dockerfile
  4. main.go
  5. Makefile

Performance analysis system

This package contains the benchmark result analysis system. It serves as a front-end to the benchmark result storage system at

The storage system is designed to have a standardized REST API at, and we encourage additional analysis tools to be written against the API. An example client can be found in the perfdata package.


Both storage and analysis can be run locally; the following commands will run the complete stack on your machine with an in-memory datastore.

To run the storage system:

$ go install
$ localperfdata -addr=:8081 -view_url_base=http://localhost:8080/search?q=upload: &

To run the analysis frontend:

$ make docker-prod
$ docker run --rm --net=host -listen-http=:8080 -perfdata=http://localhost:8081

Browse to https://localhost:8080 (note that the instance uses a self-signed certificate).

To run the analysis frontend connected to a local InfluxDB instance, first follow the instructions to set one up. Then, run the above command but with the -influx-host and -influx-token flags set to their appropriate values (as specified by the InfluxDB setup instructions).

Send an HTTP request to https://localhost:8080/cron/sync-influx to sync the local instances together.

Google Cloud

One-time setup:

  1. IAM setup, based on

a. Create GCP service account:

$ gcloud iam service-accounts create perf-prod \

c. Allow Kubernetes service account (created by deployment-prod.yaml) to impersonate the GCP service account:

$ gcloud iam service-accounts add-iam-policy-binding \
    perf-prod@<PROJECT> \
    --role roles/iam.workloadIdentityUser \
    --member "serviceAccount:<PROJECT>[prod/perf-prod]"


See the documentation on deployment.