react-hooks-worker icon indicating copy to clipboard operation
react-hooks-worker copied to clipboard

Performance benchmarks

Open ScriptedAlchemy opened this issue 4 years ago • 2 comments

What's the perf like on cold-starting workers. Your Fib example shows visibility faster calculations compared to normal JS implementations.

Would love to see a perf benchmark - very interested in using this in production

ScriptedAlchemy avatar Aug 07 '19 00:08 ScriptedAlchemy

Yeah, it would be interesting. I'll think about that. My priority is designing new API #10 though. Do you have any specific use cases? I mean, the fib example is artificial and it may or may not be suitable for benchmarks.

dai-shi avatar Aug 07 '19 13:08 dai-shi

Although not specifically related this project, I did benchmarks with redux-in-worker. The current result shows an increase in "script bootup time," which might help understand the cost of starting a worker.

dai-shi avatar Aug 20 '19 02:08 dai-shi