On Tuesday, 8 September 2015 at 12:24:19 UTC, tchaloupka wrote:
On Tuesday, 8 September 2015 at 09:20:08 UTC, Robert burner
Schadek wrote:
On Tuesday, 8 September 2015 at 09:07:10 UTC, Edwin van
Leeuwen wrote:
Just to be clear. The PR is to add the needed ground work for
adding benchmark, or does it also add some benchmarks itself?
The PR adds benchmarks for some functions of std.string.
I sort of like what Rust is using:
https://github.com/rust-lang/rust/tree/master/src/test/bench
If we can have similar benchmarks suite which can be tested
with every release, it can help to spot speed regressions or
promote new optimisations.
Have you taken a look at the source of the PR. It does exactly
that.
Of course not ever function of phobos will get its benchmark in
this PR, but this makes it easy to create benchmarks.