JuliaCI / JuliaCI/BenchmarkTools.jl

Feature idea: Check which function is faster

Open
#283 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Julia
Stars
684
Forks
107
PR merge metrics
No merged PRs in 30d

Description

I use @btime (and hypertime) to time, looking for the minimum time.

They both take some time, longer than @time which isn't reliable.

I was thinking would it be valuable to run task A, task B, A, B, etc. to see which is faster? Or because of cache, maybe A, A, .. A, B, B, ...B, and maybe again A..., B...?

Often I don't really care about the exact minimum value, I just care which is faster since I'm optimizing, and figure it might need way fewer runs, still statistically significant.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the existing @btime, hypertime, and @time behavior described in the issue, then inspect how BenchmarkTools currently runs and compares repeated measurements. Clarify the statistical goal and ordering strategy before proposing an implementation. Done would require an agreed comparison feature with documented behavior and tests demonstrating that task A and task B can be compared reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.