Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Exceptions and errors encountered during running of time benchmarks #55

Closed
odd opened this issue Apr 3, 2017 · 1 comment
Closed

Exceptions and errors encountered during running of time benchmarks #55

odd opened this issue Apr 3, 2017 · 1 comment

Comments

@odd
Copy link
Contributor

odd commented Apr 3, 2017

When running the time benchmarks while evaluating the performance of #52 some exceptions and errors for the other collection types occurred.

The time benchmarks was in this case run with:
charts -f 1 -bm avgt -bs 1 -w 100ms -r 500ms -to 30s -t max -wi 10 -i 10

The exceptions encountered where:

  • LazyListBenchmark.foldLeft for sizes 1, 7, 17, 282, 7890: java.util.NoSuchElementException: next on empty iterator
  • LazyListBenchmark.foldRight for sizes 1, 7, 17, 282: java.util.NoSuchElementException: next on empty iterator
  • LazyListBenchmark.foreach for sizes 1, 17: java.util.NoSuchElementException: next on empty iterator
  • LazyListBenchmark.uncons for size 1: java.util.NoSuchElementException: next on empty iterator

The errors encountered where:

  • LazyListBenchmark.foldLeft for size 32911: java.lang.StackOverflowError
  • LazyListBenchmark.foldRight for size 32911: java.lang.StackOverflowError
  • ListBenchmark.uncons for size 1, 7890, 32911: java.lang.StackOverflowError
  • ListBenchmark.foldLeft for sizes 7890, 32911: java.lang.StackOverflowError
  • ListBenchmark.foldRight for size 7890, 32911: java.lang.StackOverflowError
  • ArrayBufferBenchmark.foldLeft for sizes 7890, 32911: java.lang.StackOverflowError
  • ArrayBufferBenchmark.foldRight for sizes 7890, 32911: java.lang.StackOverflowError
  • ListBufferBenchmark.foldLeft for sizes 7890, 32911: java.lang.StackOverflowError
  • ListBufferBenchmark.foldRight for sizes 7890, 32911: java.lang.StackOverflowError

The stack overflow errors could be avoided by increasing the stack size (while a tail recursive implementation would avoid the problem altogether).

@julienrf
Copy link
Contributor

julienrf commented Sep 1, 2017

Do you still have this issue, @odd?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants