Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ahrtr/bbolt_bench
- Owner: ahrtr
- License: mit
- Created: 2024-04-09T16:16:21.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-11T07:25:51.000Z (9 months ago)
- Last Synced: 2024-04-11T08:34:56.862Z (9 months ago)
- Language: Go
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 versionYou 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!