Skip to content

Exp1 is slower than Exp #1064

Closed
Closed
@vks

Description

@vks

Running the corresponding benchmarks from #1063, I get the following results:

test distr_exp1_general                    ... bench:       4,208 ns/iter (+/- 192) = 1901 MB/s
test distr_exp1_specialized                ... bench:       5,288 ns/iter (+/- 196) = 1512 MB/s

This contradicts our documentation:

Samples floating-point numbers according to the exponential distribution, with rate parameter λ = 1. This is equivalent to Exp::new(1.0) or sampling with -rng.gen::<f64>().ln(), but faster.

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