Skip to content

test: expose error bars and the extra stats test keeps track of #19233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2014

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Nov 23, 2014

There are a bunch stats that libtest keeps track of that we don't expose. This adds --error-bar and --stats to expose this to the users.

@huonw
Copy link
Member

huonw commented Nov 23, 2014

Cool! Could you give the output of an example using these?

@erickt
Copy link
Contributor Author

erickt commented Nov 23, 2014

@huonw: Sure!

error bars:

test bench_buf_writer_1                             ... bench: 20000 |  [-----******#*****-----]           | 40000:     27104 ns/iter (+/- 11669)
test bench_buf_writer_1_inline_always               ... bench: 10000 |           [---*****#****--]         | 40000:     25797 ns/iter (+/- 11614)
test bench_buf_writer_1_inline_never                ... bench: 10000 |            [-------*****#***---]    | 40000:     29315 ns/iter (+/- 15064)
test bench_buf_writer_2                             ... bench: 10000 |          [---******#***---]         | 40000:     25772 ns/iter (+/- 12184)
test bench_buf_writer_2_inline_always               ... bench: 10000 |          [--******#****---]         | 40000:     24473 ns/iter (+/- 12945)
test bench_buf_writer_2_inline_never                ... bench: 20000 | [---******#*********-----]          | 40000:     25447 ns/iter (+/- 12935)

stats:

test bench_buf_writer_1                             ... bench: (min=21284.15, q1=25706.75, med=29158, q3=31405.5, max=34307.4)
test bench_buf_writer_1_inline_always               ... bench: (min=18733.7, q1=21098.25, med=25244.5, q3=29939, max=31266.8)
test bench_buf_writer_1_inline_never                ... bench: (min=21073.95, q1=23568.25, med=26339.5, q3=30946.25, max=33214.35)
test bench_buf_writer_2                             ... bench: (min=18662.95, q1=20094.75, med=24551, q3=28035.25, max=29277.05)
test bench_buf_writer_2_inline_always               ... bench: (min=17437.55, q1=18603.25, med=21153, q3=25530.5, max=29809.7)
test bench_buf_writer_2_inline_never                ... bench: (min=20313, q1=28757.75, med=30551, q3=33171.5, max=34707.1)
test bench_buf_writer_3                             ... bench: (min=22250.7, q1=29062.25, med=34385, q3=36875, max=39247.7)

@emberian
Copy link
Member

Ohhh, fancy!

@erickt erickt force-pushed the bench-stats branch 3 times, most recently from ea35295 to b13d6ef Compare December 5, 2014 01:10
bors added a commit that referenced this pull request Dec 5, 2014
There are a bunch stats that libtest keeps track of that we don't expose. This adds `--error-bar` and `--stats` to expose this to the users.
bors added a commit that referenced this pull request Dec 5, 2014
There are a bunch stats that libtest keeps track of that we don't expose. This adds `--error-bar` and `--stats` to expose this to the users.
@bors bors closed this Dec 5, 2014
@bors bors merged commit d913310 into rust-lang:master Dec 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants