jsbench / jsbench/jsbench.github.io

Configurable run count/duration for snippets

Open
#37 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
263
Forks
12
PR merge metrics
No merged PRs in 30d

Description

It would be nice to be able to configure how many runs/how long of a duration to run each test case for.

Sometimes I want quick estimations of run-time for many different code snippets and the default test durations are too long; other times I want even more precise results than those given.

Perhaps it can be added as an option to the "Setup" panel -- or perhaps add a new "Settings" panel next to it, for this setting.

Contributor guide

Open the contributing guide

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

Start with the existing Setup panel and the code that controls how each snippet test case is run. Determine how run count and duration should interact, then expose the chosen setting in the Setup panel or a new Settings panel. Done means users can configure either value and benchmark runs consistently honor it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.