dbench

command module
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 1 Imported by: 0

README

 

dbench

A nifty wrapper around pgbench that comes with plotting and result management.

 

go.dev reference

 

About

dbench is a convenient wrapper around pgbench that enhances your benchmarking experience with features like result management and plotting. It's designed to make it easy to run, manage, and visualize your PostgreSQL benchmarks.

Installation

Important: While the releases offer binaries for multiple platforms and architectures, only Linux is tested. If you are using a different OS, I do not guarantee that dbench will work as expected.

Download one of the releases for your system, or install using the provided install script:

curl -fsSL https://tinyurl.com/install-dbench | bash

Prerequisites

dbench requires pgbench and gnuplot to be installed on your system. You can check if they are installed and their versions using the dbench doctor command.

Usage

Note: To enhance security, dbench does not offer a password flag. Instead, you have two options: either set the PGPASSWORD environment variable, or input your password when prompted. dbench will subsequently use the PGPASSWORD environment variable in its sub-processes.

To use dbench, you first need to initialize a PostgreSQL Database. Remember to adjust the connection parameters to your needs.

dbench init --db-name=postgres --db-user=postgres --db-host=localhost --db-port=5432 --scale 10

Then, you can run your first array of benchmarks.

dbench run --db-name=postgres --db-user=postgres --db-host=localhost --db-port=5432

Afterward, you can plot the results.

dbench plot <id>

To see all available commands and flags, run dbench --help.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
ent
schema/pulid
Package pulid implements the pulid type.
Package pulid implements the pulid type.
internal
env
Package env provides functionality to interact with the environment variables.
Package env provides functionality to interact with the environment variables.
fs
Package fs provides functionality to interact with the file system.
Package fs provides functionality to interact with the file system.
mocks
Package mocks provides mock implementations for testing.
Package mocks provides mock implementations for testing.
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL