Edd Robinson
621f2f91f0
refactor: hoist tsm mapper to delorean_tsm
2020-06-22 18:56:17 +01:00
Andrew Lamb
2be21dab57
fix: Name benchmark group consistently ( #161 )
2020-06-17 20:01:17 -04:00
Jake Goulding
4aa3afb930
perf: Add a benchmark for the line parser
2020-04-08 14:41:17 -04:00
Edd Robinson
c2b49a7804
refactor: please clippy
2020-02-27 19:41:55 +00:00
Carol (Nichols || Goulding)
be9b2bf695
fix: cargo fmt
2020-02-14 12:47:58 -05:00
Carol (Nichols || Goulding)
78b008a062
fix: Use size_of T instead of hardcoded 8
2020-02-14 12:47:13 -05:00
Carol (Nichols || Goulding)
6463601676
fix: Use TryFrom instead of as to get noisy conversion errors
2020-02-14 11:40:36 -05:00
Carol (Nichols || Goulding)
575907814c
fix: Make batch sizes be usize and convert through i32 when needed
2020-02-14 11:39:26 -05:00
Carol (Nichols || Goulding)
3a3a7993b2
refactor: Extract a function for benchmarking decoding
2020-02-12 13:08:11 -05:00
Carol (Nichols || Goulding)
72ea8c09c9
fix: Move a vec allocation outside of the benchmarked code
...
This is consistent with the rest of the decode benchmarks and I think
matches the benchmark intentions best.
2020-02-12 12:45:43 -05:00
Carol (Nichols || Goulding)
c498d1f524
fix: Remove truncate from encoding benchmark
...
The first thing the `encode` function does is truncate the `dst` buffer,
so this should never be necessary inside the code being benchmarked for
testing encoders.
2020-02-12 12:42:54 -05:00
Carol (Nichols || Goulding)
1fc46c33f3
refactor: Call the general encoding benchmarking fn for CPU values
2020-02-12 11:46:49 -05:00
Carol (Nichols || Goulding)
b36c4b9672
refactor: Extract shared benchmarking of encoding
...
Benchmarking random values was more general than sequential since it
takes an arbitrary function to create the decoded values; express
sequential in terms of random and change the name of random to be
general benchmarking of encoding.
2020-02-12 11:44:08 -05:00
Carol (Nichols || Goulding)
2080bfc5c4
refactor: Extract a fn for benchmarking encoding of random values
2020-02-12 11:41:25 -05:00
Carol (Nichols || Goulding)
532329f83e
refactor: Extract a fn for benchmarking encoding of sequential values
2020-02-12 11:30:21 -05:00
Carol (Nichols || Goulding)
85b5d339a9
refactor: Extract batch sizes into constants
...
Exposes which tests use which batch sizes more clearly; names of
constants could be improved.
2020-02-12 11:14:57 -05:00
Carol (Nichols || Goulding)
e361cded92
refactor: Move all encoder benchmarks to one file
2020-02-12 11:08:07 -05:00
Carol (Nichols || Goulding)
6fbe9167ae
refactor: Extract large constant to a separate module
2020-02-12 10:28:00 -05:00
Edd Robinson
7a9f69c921
refactor: address PR feedback
2020-02-07 22:28:11 +00:00
Edd Robinson
5327efd926
test: add timestamp benchmarks
2020-02-07 13:26:59 +00:00
Edd Robinson
bd8246d561
test: add integer encoder/decoder benchmarks
2020-02-07 13:11:38 +00:00
Edd Robinson
4185307d78
test: add float encoder/decoder bencmarks
...
This commit adds benchmarks for the float encoder and decoder. The
following scenarios are benchmarked:
- sequential values;
- random values;
- real CPU values (from Telegraf output).
Each scenario is benchmarked with a variety of block sizes.
2020-01-21 15:01:35 +00:00