Skip to content

Rust port of criterion for benchmarking #6812

Closed
@graydon

Description

@graydon
Contributor

The built in unit tester presently contains some very crude one-off automated benchmarking stuff. It was initially a clone of the Go testing.B benchmark system (http://golang.org/pkg/testing/#B) but started to drift towards doing statistical measurement in order to get a more stable signal.

I believe Bryan O'Sullivan's criterion library (https://github.com/bos/criterion) is the state of the art here. We should port / emulate whatever it does well.

Activity

catamorphism

catamorphism commented on Aug 26, 2013

@catamorphism
Contributor

(bug triage) Good idea; not a blocker IMO.

Aatch

Aatch commented on Mar 4, 2014

@Aatch
Contributor

Visiting for triage.

This would be nice, but still isn't a high-priority.

schuster

schuster commented on Apr 5, 2014

@schuster

I thought I might try to write this to help me learn Rust. I've found the testing guide and the various benchmark tests in the code. Are there any other resources I should be aware of, or design goals to keep in mind (other than emulating criterion)?

I'll try to get something simple working, post it, and request feedback as I go.

japaric

japaric commented on May 26, 2014

@japaric
Member

I'm tackling this issue here, I'll love to get feedback!

kud1ing

kud1ing commented on Oct 16, 2014

@kud1ing

Is this fixed by https://github.com/japaric/criterion.rs ?
Is it already usable for supporting #18085 ?

steveklabnik

steveklabnik commented on Jan 21, 2015

@steveklabnik
Member

I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized.

This issue has been moved to the RFCs repo: rust-lang/rfcs#651

added a commit that references this issue on Mar 11, 2021

Auto merge of rust-lang#6812 - Y-Nak:fix-6792, r=matthiaskrgr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @graydon@steveklabnik@Aatch@kud1ing@catamorphism

        Issue actions

          Rust port of `criterion` for benchmarking · Issue #6812 · rust-lang/rust