timescale / tsbs

Time Series Benchmark Suite, a tool for comparing and evaluating databases for time series data
MIT License
1.29k stars 300 forks source link

Add configuration file support to all commands #91

Closed antekresic closed 5 years ago

antekresic commented 5 years ago

By utilizing the spf13/viper library, this commit enables all command line flags to be set by using a configuration file (i.e. config.yaml) which should be located in the root directory of the command.

codecov-io commented 5 years ago

Codecov Report

Merging #91 into master will decrease coverage by 0.48%. The diff coverage is 57.79%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #91      +/-   ##
==========================================
- Coverage   69.27%   68.79%   -0.49%     
==========================================
  Files         102      103       +1     
  Lines        5533     5646     +113     
==========================================
+ Hits         3833     3884      +51     
- Misses       1636     1688      +52     
- Partials       64       74      +10
Impacted Files Coverage Δ
internal/inputs/generator.go 52.63% <0%> (ø) :arrow_up:
internal/utils/config.go 0% <0%> (ø)
internal/inputs/generator_data.go 90% <0%> (-0.61%) :arrow_down:
cmd/tsbs_load_cratedb/main.go 0% <0%> (ø) :arrow_up:
internal/inputs/generator_queries.go 73% <0%> (-2.8%) :arrow_down:
load/loader.go 62.41% <45.45%> (-1.36%) :arrow_down:
query/benchmarker.go 74.39% <65.62%> (-12.79%) :arrow_down:
cmd/tsbs_load_cassandra/main.go 29.78% <76.47%> (+10.34%) :arrow_up:
cmd/tsbs_load_influx/main.go 42.85% <78.94%> (+9.52%) :arrow_up:
cmd/tsbs_load_siridb/main.go 50% <80.95%> (+10.86%) :arrow_up:
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 00d60c4...589af52. Read the comment docs.