davidblewett / timescale_bench

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

timescale_bench

Documentation Status

CLI for benchmarking SELECT query performance against a TimescaleDB instance. Example:

pip install -e git+https://github.com/davidblewett/timescale_bench.git#egg=timescale_bench
export DSN=postgresql://postgres@localhost/homework
timescale_bench -f /path/to/query_params.csv
  • Free software: Apache Software License 2.0

Features

  • Input is a CSV file (either stdin or path on disk) with the following structure:
    • hostname,start_time,end_time
  • Database connection details passed via connection string:
  • Optionally output host per-minute min/max CPU usage
  • Output Summary
    • # of queries processed
    • total processing time across all queries
    • the minimum query time (for a single query)
    • the median query time
    • the average query time
    • and the maximum query time.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

License:Other


Languages

Language:Python 78.7%Language:Makefile 21.3%