Mark Rushakoff
1d38d18d79
chore: remove pkg/deep
...
Looks like the last reference to it was deleted in March 2018
(df7a660fb3
).
Prior to that the last use was switched to go-cmp, which we've more
or-less standardized on, at this point.
2019-01-25 08:19:40 -08:00
Mark Rushakoff
d73d73c0d4
chore: rename imports from platform to influxdb
...
I did this with a dumb editor macro, so some comments changed too.
Also rename root package from platform to influxdb.
In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.
Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
2019-01-09 20:51:47 -08:00
Stuart Carnie
8f8311a3ae
chore(gen): Add ingen generator data structures to platform for reuse
2018-12-11 17:45:57 -07:00
Edd Robinson
6b63a3def7
Add option to disable sfile metrics
2018-12-10 14:36:28 +00:00
Edd Robinson
b015757c06
Ensure all tsi1 metrics support multiple instances
2018-12-07 14:32:34 +00:00
Edd Robinson
bff655786f
Ensure tsdb metrics properly registered
2018-12-07 14:32:34 +00:00
Edd Robinson
79b108d174
Fix bug with slice reuse
2018-12-07 14:32:34 +00:00
Edd Robinson
f9a2f7a017
go fmt
2018-12-07 14:32:34 +00:00
Edd Robinson
e0c10227d0
Fix metric issue in series file
2018-12-07 14:32:34 +00:00
Edd Robinson
7960ccc320
Add TSI index metrics
2018-12-07 14:32:34 +00:00
Edd Robinson
55caa0fe54
Add RHH metrics
2018-12-07 14:32:34 +00:00
Edd Robinson
d1fe2bc188
Add series file metrics
2018-12-07 14:32:34 +00:00
Ben Johnson
0084d4d824
Remove influxdb dependency.
2018-11-29 11:44:22 -07:00
Stuart Carnie
79f06f6b97
feedback: Add nil comparison tests
2018-11-21 12:01:36 -07:00
Stuart Carnie
8920dab57a
feedback: Changes per PR feedback
2018-11-21 12:01:36 -07:00
Stuart Carnie
7fb015cc7f
chore: Add GroupBy benchmark
2018-11-21 12:01:36 -07:00
Stuart Carnie
26408dc1fa
chore(reads): Document ResultSet and GroupResultSet APIs; add func Err
...
* add option to Group sort to specify precedence of `nil`
* improve unit tests for GroupResultSet implementation
2018-11-21 12:01:35 -07:00
Stuart Carnie
bef0577206
fix(simple8b): Fix incorrect encoding for a run of 119 or 239 1s
...
If 120th or 240th value is not a 1, k still passes the check in the
switch, causing the last value to be lost. If this value occurs at
the boundary of a block, the max time will be incorrect, resulting in
compaction failing to make forward progress.
2018-11-14 12:14:45 +00:00
Stuart Carnie
a339f8f620
feat(encoding): Improve integer and simple8b encoding performance
...
simple8b EncodeAll improvements should
```
name old time/op new time/op delta
EncodeAll/1_bit-8 28.5µs ± 1% 28.6µs ± 1% ~ (p=0.133 n=9+10)
EncodeAll/2_bits-8 28.9µs ± 2% 28.7µs ± 0% ~ (p=0.068 n=10+8)
EncodeAll/3_bits-8 29.3µs ± 1% 28.8µs ± 0% -1.70% (p=0.000 n=10+10)
EncodeAll/4_bits-8 29.6µs ± 1% 29.1µs ± 1% -1.85% (p=0.000 n=10+10)
EncodeAll/5_bits-8 30.6µs ± 1% 29.8µs ± 2% -2.70% (p=0.000 n=10+10)
EncodeAll/6_bits-8 31.3µs ± 1% 30.0µs ± 1% -4.08% (p=0.000 n=9+9)
EncodeAll/7_bits-8 32.6µs ± 1% 30.8µs ± 0% -5.49% (p=0.000 n=9+9)
EncodeAll/8_bits-8 33.6µs ± 2% 31.0µs ± 1% -7.77% (p=0.000 n=10+9)
EncodeAll/10_bits-8 34.9µs ± 0% 31.9µs ± 2% -8.55% (p=0.000 n=9+10)
EncodeAll/12_bits-8 36.8µs ± 1% 32.6µs ± 1% -11.35% (p=0.000 n=9+10)
EncodeAll/15_bits-8 39.8µs ± 1% 34.1µs ± 2% -14.40% (p=0.000 n=10+10)
EncodeAll/20_bits-8 45.2µs ± 3% 36.2µs ± 1% -19.97% (p=0.000 n=10+9)
EncodeAll/30_bits-8 55.0µs ± 0% 40.9µs ± 1% -25.62% (p=0.000 n=9+9)
EncodeAll/60_bits-8 86.2µs ± 1% 55.2µs ± 1% -35.92% (p=0.000 n=10+10)
EncodeAll/combination-8 582µs ± 2% 502µs ± 1% -13.80% (p=0.000 n=9+9)
```
EncodeIntegers:
```
name old time/op new time/op delta
EncodeIntegers/1000_seq/batch-8 2.04µs ± 0% 1.50µs ± 1% -26.22% (p=0.008 n=5+5)
EncodeIntegers/1000_ran/batch-8 8.80µs ± 2% 6.10µs ± 0% -30.73% (p=0.008 n=5+5)
EncodeIntegers/1000_dup/batch-8 2.03µs ± 1% 1.50µs ± 1% -26.04% (p=0.008 n=5+5)
```
EncodeTimestamps (ran is improved due to simple8b improvements)
```
name old time/op new time/op delta
EncodeTimestamps/1000_seq/batch-8 2.64µs ± 1% 2.65µs ± 2% ~ (p=0.310 n=5+5)
EncodeTimestamps/1000_ran/batch-8 64.0µs ± 1% 33.8µs ± 1% -47.23% (p=0.008 n=5+5)
EncodeTimestamps/1000_dup/batch-8 9.32µs ± 0% 9.28µs ± 1% ~ (p=0.087 n=5+5)
```
2018-11-01 18:59:20 +00:00
Stuart Carnie
dd83bd230f
chore(simple8b): Add more unit tests and benchmarks
2018-11-01 18:59:20 +00:00
Chris Goller
90494a5309
chore(fmt): fix and simplify go formatting
2018-10-08 17:23:54 -05:00
Jeff Wendling
917555e3cd
Fix invalid import comment
2018-10-04 12:29:34 -06:00
Edd Robinson
ea02772fc5
Pull in more pkg packages
2018-10-01 12:08:37 +01:00
Edd Robinson
074f263e08
Initial import of tsm1.Engine
2018-10-01 12:08:37 +01:00
Edd Robinson
fb0db04bc1
Initial import pkg package
2018-10-01 12:03:20 +01:00