Back to Frameworkbenchmarks

Opium Benchmarking Test

frameworks/OCaml/opium/README.md

31.6 KB
Original Source

Opium Benchmarking Test

Test Type Implementation Source Code

Important Libraries

Structure

lib/ contains most of the logc. It doesn't have a dependency on any web server to make it more portable and allow easier addition to new webservers. Feel free to copy paste when adding additional servers.

Local development

Either use the docker images or make pin && make install and then make run or make run-forks

Variants

  • opium - base implementation, uses a single process
  • opium-haproxy - starts multiple processes on different ports and uses haproxy to distribute the load
  • opium-fedora-forks - starts multiple processes listening on the same socket
  • opium-alpine-forks - same as the above, but uses alpine instead of fedora

Test URLs

PLAINTEXT

http://localhost:8080/plaintext

JSON

http://localhost:8080/json

DB

http://localhost:8080/db

QUERY

http://localhost:8080/queries/

UPDATES

http://localhost:8080/updates/

FORTUNES

http://localhost:8080/fortunes/