GithubHelp home page GithubHelp logo

chihiro's Introduction

Chihiro

Prisma benchmarking tool.

Usage

The provided queries are supposed to run against a Chinook database. The provided database setups should contain the needed data.

First start the database:

> docker-compose -f docker/docker-compose.postgres.yml up -d

After the database is up and running, start an instance of prisma pointing to the database, preferably in release mode.

> RUST_LOG_FORMAT=devel RUST_LOG=info PRISMA_DML_PATH=datamodel_postgres.prisma prisma

Edit a test file, describing where to find the tests and how to run them:

identifier = "master_test_run"
duration_per_test = 240 # seconds
elastic_endpoint = "https://16a31d8b2f8042df82b75bd7759edb00.eu-central-1.aws.cloud.es.io:9243/"

[rates] # test runs, integer is requests per second
very_slow = [25, 50, 75, 100, 125, 150, 175, 200, 225, 250]
slow = [25, 50, 75, 100, 125, 150, 175, 200, 225, 250]
medium = [100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 2000]
fast = [200, 400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000, 4000]
very_fast = [200, 400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000, 4000]

[[test_run]]
path = "./queries/" # runs all queries from all subdirs
[test_run.variables.artist_id]
minimum = 1 # we randomise every $artist_id in queries, starting from this
maximum = 275 # ... and ending to this
[test_run.variables.track_id]
minimum = 1 # randomise $track_id in queries, starting from this
maximum = 3503 # ... and ending to this

Compile chihiro in release mode (important) and run the tests against the Prisma server.

To be able to store anything to the elasticsearch database, you need the login credentials set into ELASTIC_USER and ELASTIC_PW env vars.

> cargo build --release
> ./target/debug/chihiro --prisma-url http://localhost:4466/ --query-file test_run.toml --show-progress --metrics-database response_times

chihiro's People

Contributors

dpetrick avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.