Skip to content

How to setup for function with multiple arguments? #178

@nathanrboyer

Description

@nathanrboyer

I am writing a PR to Modern Julia Workflows to suggest Chairmarks over BenchmarkTools. Their current text has this BenchmarkTools.jl example that I don't know how to do with Chairmarks. I couldn't find any examples like this in the documentation.

my_matmul(A, b) = A * b;
@btime my_matmul(A, b) setup=(
    A = rand(1000, 1000); # use semi-colons between setup lines
    b = rand(1000)
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions