Commit Graph

62 Commits (4ed9c75896bdadffc3ffbeae010db2f15e037710)

Author SHA1 Message Date
Michael Desa 1a3d6cb74a Rename newResponseTime to NewResponseTime 2015-09-09 11:21:16 -07:00
Michael Desa 4413b302be Fix sorting for the ResponseTimes type
The `sort` methods were failing as responseTimes couldn't be cast to an
[]int. To fix this `ResponseTimes` now implements the `sort.Interface`
interface.
2015-09-09 11:21:16 -07:00
Michael Desa d54e439385 Change responseTimes to its own type
`responesTimes` was an []int and is now it own type
2015-09-09 11:21:16 -07:00
Michael Desa 3ae5183592 Add comments where needed 2015-09-09 11:21:16 -07:00
Michael Desa a19e2d9f50 Rename `Runner` to `Run` 2015-09-09 11:21:16 -07:00
Michael Desa 71d8047ad3 Pull the body of influx_stress main out
This commit abstracts out the body of `main()` and moves it into a separate
function `Runner` in `runner/runner.go`. Additonally two new types,
`Timer` and `Config` were introduced.

`Runner` takes in a `*Config` and returns the total number of points
written `totalPoints`, an slice of response times `responseTimes`, and a
timer with the starting and ending times of the test `*Timer`.
2015-09-09 11:21:16 -07:00
Michael Desa d57771dc17 Add Timer type that keeps track of start & end 2015-09-09 11:21:16 -07:00
Michael Desa 8b89332029 Add new file `runner.go` 2015-09-09 11:21:16 -07:00
Paul Dix 375afc3fcc Update stress to work with fewer than 10k series. 2015-08-20 09:36:06 -04:00
Paul Dix 9a53406e55 remove extraneous debug stuff 2015-08-16 12:46:50 -04:00
Paul Dix 6776014047 Fix bug in stress script, remove extraneous printlns 2015-08-16 12:46:50 -04:00
Paul Dix 48ede78d98 mend 2015-08-16 12:46:50 -04:00