https://github.com/jhnns/worker-message-performance
Performance test of message passing between the main thread and a service- or web-worker.
https://github.com/jhnns/worker-message-performance
Last synced: 3 months ago
JSON representation
Performance test of message passing between the main thread and a service- or web-worker.
- Host: GitHub
- URL: https://github.com/jhnns/worker-message-performance
- Owner: jhnns
- License: unlicense
- Created: 2016-04-24T09:18:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-24T14:33:13.000Z (about 9 years ago)
- Last Synced: 2025-01-24T12:13:37.848Z (5 months ago)
- Language: HTML
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Worker message passing performance
Performance test of message passing between the main thread and a [service-](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) or [web-worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API).
## Setup
This tests creates a service- and a web-worker and measures the duration between sending a "ping" message and receiving a "pong" message from the worker. An additional test sends a payload back and forth. The payload is a string with roughly 5300 characters.
## Results
*These results have been gathered on a MacBook Pro (Mid 2014) 2,5 GHz Intel Core i7 running OSX 10.11.4 executing 100.000 iterations*
Browser | Payload | Worker | Average duration
--------|--------|---------|-----------------
Chrome 52.0.2715.0 canary (64-bit) | no | web | 0.42ms
| | service | 1.29ms
| yes | web | 0.51ms
| | service | 1.30ms