Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahrtr/bbolt_bench

Benchmark tool for bbolt
https://github.com/ahrtr/bbolt_bench

Last synced: about 1 month ago
JSON representation

Benchmark tool for bbolt

Awesome Lists containing this project

README

        

# bbolt_bench

## Steps to run benchmark against a specific bbolt version
### Step 1: Update go.mod/go.sum to depend on the target bbolt version

You need to update the go.mod/go.sum to depend on the target bbolt version, against which you are going to run benchmark.

Example 1: get a specific commit on main branch
```
$ go get go.etcd.io/bbolt@67165811e57a79678b6fab9b029bc032b9dfef0e
$ go mod tidy
```

Example 2: get 1.3.8
```
$ go get go.etcd.io/[email protected]
$ go mod tidy
```

### Step 2: build

```
$ go build
```

### Step 3: Run benchmark

Example:
```
$ ./bbolt_bench -count 100000 -batch-size 25000
```

### Step 4: cleanup

```
$ make clean
```

## Contribution

Any contribution or suggestion is welcome!