Skip to content

Commit

Permalink
[benchmark] Increase havlak's stack size (#18274)
Browse files Browse the repository at this point in the history
After #18191 this started to fail. This program does DFS, so it uses
deep recursive calls.
https://github.com/emscripten-core/emscripten/blob/02cc1eecd81d44e4456aa27a9ebddfe5f54c33e6/test/havlak.cpp#L497
  • Loading branch information
aheejin committed Nov 30, 2022
1 parent 5d887af commit 02f26d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,9 @@ def test_skinning(self):

def test_havlak(self):
src = read_file(test_file('havlak.cpp'))
self.do_benchmark('havlak', src, 'Found', shared_args=['-std=c++11'])
# This runs many recursive calls (DFS) and thus needs a larger stack
self.do_benchmark('havlak', src, 'Found', shared_args=['-std=c++11'],
emcc_args=['-sSTACK_SIZE=1MB'])

def test_base64(self):
src = read_file(test_file('base64.cpp'))
Expand Down

0 comments on commit 02f26d4

Please sign in to comment.