Skip to content

Renaming long arguments #66

@dfherr

Description

@dfherr

I'm sorry if this is quite obvious, but I couldn't figure it out from the docs.

I am benchmarking a function that takes Strings as input and want to run it on different strings. One of these strings is supposed to be quite long. That leads to divan printing the whole long string into the terminal effectively making the output unreadable.

How can I avoid this?

I guess I could wrap my input into the function with a custom ToString() method. But I find that quite ugly as it alters the input of my function affecting the benchmark results.

I was looking for ways to name the arguments or change the print output of divan instead of changing the benchmark function itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions