x1unix / go-playground

Better Go Playground powered by Monaco editor
https://goplay.tools/
MIT License
1.3k stars 82 forks source link

wasm: running benchmarks make page inresponsive #411

Closed x1unix closed 1 month ago

x1unix commented 1 month ago

Describe the bug

When running Go benchmarks in WASM environment, page becomes unresponsive.

This caused because WASM program is running in the same UI thread.

To Reproduce Steps to reproduce the behavior:

  1. Go to examples and select testing -> benchmarking
  2. Click on Run
  3. Observe the problem

Expected behavior

Benchmark shouldn't hang the page.