effekt-lang / effekt-lang/effekt

Benchmarks run out of heap space in optimized JS

Open
#1,026 0 comments 1 reaction 0 assignees View on GitHub
area:js bug
Dominant language
Scala
Stars
469
Forks
41
Avg merge
1d 16h
Merged PRs (30d)
23

Description

The benchmark test suite of Effekt Plots fails since a few days.

The culprits are two JS test cases that run out of heap space: `resume_nontail 10000` and `sum_range 10000000`. Both OOMs are reproducible with a maximum heap size of `2GiB` but not with `4GiB` (the default on MacOS). Since the tests are rather minimal and require maximally a few MiB on LLVM, this is in fact a problem of the JS backend.

To continue benchmarking on Effekt Plots, a **temporary** solution would be to increase the default heap size or, better, allow passing custom flags to the JS (+ LLVM) runner from the Effekt CLI, potentially via environment variable.

We have yet to determine the cause of the sudden change on plots, since no relevant code was changed and we cannot reproduce a working state on older versions.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.