Repository navigation
Refactored type handler benchmarks - #2058
Conversation
|
@roji Please rerun Travis CI. |
|
Done. The WaitWithKeepalive test fails somewhat regularly, we should take a look (opened #2070). |
roji
left a comment
There was a problem hiding this comment.
LGTM.
But one note about Values and ValuesOverride... The type of Values is currently IEnumerable<T>, which means that instances are potentially on the fly as the benchmark is running. For example, in the text case new string() is executed as the IEnumerable is traversed.
I'm not sure how BenchmarkDotNet implements ParamsSource, but wouldn't it be safer to simply call ToArray() on the IEnumerable, creating a simple array? This way we're sure nothing happens as the benchmark is being executed?
|
It does it internally (source), so from the API design point of view it's better to return something readonly which an |
|
In that case it looks good to go. |
Interval, NpgsqlRange<ZonedDateTime> etc. Fixes npgsql#2059 Fixes npgsql#2058
No description provided.