A Benchmark stores a vector of samples. This sounds quite reasonable. However, it is much more common to want to access just the times than just the first sample. Consequently, it would be nice to be able to access benchmark.times or benchmark.time instead of getproperty.(benchmark.samples, :time) or [s.time for s in benchmark.samples].
i.e. automatically broadcast getproperty over samples if the property is not :samples.
A
Benchmarkstores a vector of samples. This sounds quite reasonable. However, it is much more common to want to access just the times than just the first sample. Consequently, it would be nice to be able to accessbenchmark.timesorbenchmark.timeinstead ofgetproperty.(benchmark.samples, :time)or[s.time for s in benchmark.samples].i.e. automatically broadcast getproperty over samples if the property is not
:samples.