Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Latest commit

 

History

History
52 lines (34 loc) · 1.46 KB

benchmarking.md

File metadata and controls

52 lines (34 loc) · 1.46 KB

Benchmarking Setup Guide

This document summarises the whole procedure to setup a test server for benchmarking we used to collect reports. Lookup individual tool's official documentation for more granular information.

Local Flask Server

Requires python installation.

  1. Get flask and waitress from pip.

    pip install flask waitress
  2. Start the server.

    cd test_servers/flask
    waitress-serve --call 'app:main'

Now, local server should be accessable from http://localhost:8080. See Flask Docs and Waitress Docs for more information.

Local Caddy 2 Server

Requires golang 1.15 and above installation.

  1. Install caddy as per your platform accordingly from Caddy Official Installation Docs.

  2. Add a domain name to your /etc/host file.

    127.0.0.1 localsite.org localsite
    
  3. Create an SSL Certificate using mkcert inside test_servers/caddy folder and install it.

    cd test_servers/caddy
    mkcert localsite.org
    mkcert -install
  4. Adapt to config and start the Caddy server.

    cd test_servers/caddy
    caddy adapt
    sudo caddy run

Now, site should be available at https://localsite.org. See Caddy Docs for more information.