Skip to content

Add benchmarks. #244

Closed
Closed
@glennpratt

Description

@glennpratt

I've been creating benchmarks for some exercises in the benches dir and testing with cargo bench.

Using test::Bencher, they would only work on nightly, but that could be documented easily enough and cargo test would still work fine on stable.

This Go exercise is a pretty compelling reason to have that. Is your parallel implementation even faster than a simple sequential implementation? Find out:

https://github.com/exercism/xgo/blob/master/exercises/parallel-letter-frequency/parallel_letter_frequency_test.go#L48-L58

Would a PR adding a benchmark to that example to start be accepted?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions