Skip to content

Increase runtime of programs #336

@bddicken

Description

@bddicken

Something that has been brought up repeatedly is the fact that this benchmark includes interpreter/jit/whatever startup times, which makes it "unfair" relative to purely compiled languages. While this is partly true, it is not unreasonable to have a benchmark that does include these startup times, as it is real cost in some scenarios.

One thing that could be done to both (A) help mitigate this problem and (B) uncover other performance differences is make the program run longer. This can be done by giving each larger input values or more data to process.

At the time of writing this, there are four programs. Here's how we could change this for each:

  • loops: update the implementations to take a variable amount of iterations. Then, pass in a value that causes longer runtime (perhaps 10 billion instead of 1, for example)
  • levenshtein - Add more strings and longer strings to the passed-in input
  • fibonacci - Call with 43 or 44 instead of 40
  • hello-world nothing!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions