Skip to content

First example in README is invalid #134

@robsmith11

Description

@robsmith11

The first example in the README @btime sin(1) (no longer?) measures anything meaningful because the expression is constant-folded, which makes it a rather poor demonstration of how to use BenchmarkTools.

A better example should be used and perhaps a section could be added on avoiding situations like this.

See also
https://discourse.julialang.org/t/benchmarktools-with-simple-fast-running-function/21049/2

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