Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use tinybench for benchmarking #485

Closed
wants to merge 1 commit into from
Closed

Conversation

tokkiumai
Copy link

No description provided.

)
})

bench.threshold = 10
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason behind these changes?

Copy link
Author

@tokkiumai tokkiumai Jun 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lesser execution time. Threshold could be increased to a number of benchmark tasks (bench._tasks.size) which is even faster, but 10 is recommended by tinybench docs

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why, can’t understand by docs what is default and what exactly we will change here? CI is almost identical.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, benchmark tasks run synchronously. On nanoid benchmark suite the concurrent run not saving much time (it's -1 second for me: 21sec for synchronous run and 20 for concurrent).

So, using concurrent warmup and run for benchmark is not something of a real need, since it gives about 4% better execution time

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let’s close it since I'm afraid of some benchmark result issues with concurrent

@ai ai closed this Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants