https://github.com/abbychau/gtsdb-benchmark
https://github.com/abbychau/gtsdb-benchmark
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abbychau/gtsdb-benchmark
- Owner: abbychau
- Created: 2025-01-03T19:56:53.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-26T17:12:15.000Z (4 months ago)
- Last Synced: 2025-01-26T18:23:18.415Z (4 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GTSDB vs InfluxDB Benchmark
A Go benchmarking tool that compares performance between GTSDB and InfluxDB for time series data operations.
## Features
- Single point write benchmarking
- Multi-sensor parallel write benchmarking
- Read operation benchmarking
- Comparison of success rates and operation durations## Requirements
- Go 1.21+
- InfluxDB server running on localhost:8086
- GTSDB server running on localhost:5555## Dependencies
- github.com/influxdata/influxdb-client-go/v2
- github.com/VictoriaMetrics/metrics (commented out in code)## Usage
1. Start your InfluxDB and GTSDB servers
2. Configure connection settings in main.go:
```go
gtsdbAddress := "localhost:5555"
influxURL := "http://localhost:8086"
influxToken := "your-token-here"
```
3. Run the benchmark:
```bash
go run .
```The program will output performance metrics comparing write and read operations between GTSDB and InfluxDB.
## API Examples
See [api.http](api.http) for a complete list of supported GTSDB API operations and example requests.
## Contributing
Pull requests are welcome. I want to add VictoriaMetrics support and more benchmarking features.