---
title: "Comment by Akhila Sharon N. on \"Web Workers vs Shared Workers vs Service Workers: A Practical Guide to Choosing the Right One\" | Hashnode"
description: "Solid guide on threading models in the browser. Unloading heavy background tasks to keep the main thread free for UI responsiveness makes a massive difference i"
url: "https://hashnode.com/posts/web-workers-vs-shared-workers-vs-service-workers-a-practical-guide-to-choosing-the-right-one/6ac6389bb529833a337e24dc/comment/6ac78ab96036317a6ec56049"
---

[Discussion](https://hashnode.com/posts/web-workers-vs-shared-workers-vs-service-workers-a-practical-guide-to-choosing-the-right-one/6ac6389bb529833a337e24dc)

Comment [Web Workers vs Shared Workers vs Service Workers: A Practical Guide to Choosing the Right One](https://hashnode.com/posts/web-workers-vs-shared-workers-vs-service-workers-a-practical-guide-to-choosing-the-right-one/6ac6389bb529833a337e24dc)

[Akhila Sharon N.](https://hashnode.com/@akhila-003)

[Oct 8](https://hashnode.com/posts/web-workers-vs-shared-workers-vs-service-workers-a-practical-guide-to-choosing-the-right-one/6ac6389bb529833a337e24dc/comment/6ac78ab96036317a6ec56049)

Solid guide on threading models in the browser. Unloading heavy background tasks to keep the main thread free for UI responsiveness makes a massive difference in user experience. I would love to know if you have benchmarked WebAssembly running inside Web Workers for heavy mathematical tasks, and if thread instantiation overhead ever impacted your initial startup time.

[Arun kumar Velu](https://hashnode.com/@arunkumarvelu)

[Oct 8](https://hashnode.com/posts/web-workers-vs-shared-workers-vs-service-workers-a-practical-guide-to-choosing-the-right-one/6ac6389bb529833a337e24dc/comment/6ac78ab96036317a6ec56049#reply-6ac78e2fb04c802520c596fe)

I haven’t benchmarked WebAssembly inside a Web Worker for this post, so I wouldn’t claim a performance improvement yet. It would be interesting to measure worker startup, Wasm loading/initialization, and computation separately, then compare them with JavaScript on the main thread and JavaScript in a worker. My expectation is that startup costs matter more for short, one-off tasks, while reusing an initialized worker may make more sense for repeated heavy calculations—but I’d want measurements for the specific workload before drawing a conclusion.
