benchmark

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

Atomix Benchmark Example

The benchmark example includes benchmarks for Atomix map put, get, and remove operations against a Raft database.

To run the benchmarks, use the ./cmd/helmit-examples command, passing the examples/charts directory as the benchmark context:

helmit bench ./examples/benchmark/cmd \
    --suite atomix \
    --context examples/charts \
    --duration 5m

To run a specific benchmark, specify the benchmark name with the --benchmark flag:

helmit bench ./examples/benchmark/cmd \
    --suite atomix \
    --benchmark BenchmarkMapPut \
    --context examples/charts \
    --duration 5m

To change the size of the Raft database, set the atomix-raft chart values:

helmit bench ./examples/benchmark/cmd \
    --suite atomix \
    --benchmark BenchmarkMapPut \
    --context examples/charts \
    --duration 5m \
    --set atomix-raft.clusters=3 \
    --set atomix-raft.partitions=9 \
    --set atomix-raft.backend.replicas=3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomixBenchmarkSuite

type AtomixBenchmarkSuite struct {
	benchmark.Suite
	// contains filtered or unexported fields
}

AtomixBenchmarkSuite is an end-to-end test suite for Atomix

func (*AtomixBenchmarkSuite) BenchmarkMapGet

func (s *AtomixBenchmarkSuite) BenchmarkMapGet(b *benchmark.Benchmark) error

BenchmarkMapPut benchmarks an Atomix map get operation

func (*AtomixBenchmarkSuite) BenchmarkMapPut

func (s *AtomixBenchmarkSuite) BenchmarkMapPut(b *benchmark.Benchmark) error

BenchmarkMapPut benchmarks an Atomix map put operation

func (*AtomixBenchmarkSuite) BenchmarkMapRemove

func (s *AtomixBenchmarkSuite) BenchmarkMapRemove(b *benchmark.Benchmark) error

BenchmarkMapPut benchmarks an Atomix map remove operation

func (*AtomixBenchmarkSuite) SetupSuite

func (s *AtomixBenchmarkSuite) SetupSuite(c *benchmark.Context) error

SetupBenchmarkSuite sets up the Atomix cluster

func (*AtomixBenchmarkSuite) SetupWorker

func (s *AtomixBenchmarkSuite) SetupWorker(c *benchmark.Context) error

SetupBenchmarkWorker creates an instance of the map on each worker node

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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