Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stwissel/ebexperiments
Test code with vert.x eventbus
https://github.com/stwissel/ebexperiments
Last synced: 8 days ago
JSON representation
Test code with vert.x eventbus
- Host: GitHub
- URL: https://github.com/stwissel/ebexperiments
- Owner: Stwissel
- Created: 2020-08-03T13:23:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-07T16:25:43.000Z (over 4 years ago)
- Last Synced: 2024-12-21T09:27:12.531Z (2 months ago)
- Language: Java
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= EventBus Experiment
image:https://img.shields.io/badge/vert.x-4.0.0.Beta1-purple.svg[link="https://vertx.io"]
This application was generated using http://start.vertx.io
The application compares execution speeds in a crude way for different EventBus useage pattern
Just run the main() method in the MainVerticle class. It will
- Deploy 2 verticles
- Generate sample data
- Start a http listener on 8888## Measurements
Use curl to call the end points. Performance data will be printed to the console:
1. `curl localhost:8888/test1` -> Simple Request/Response. 1 packet received for JsonArray with 10000 elements
2. `curl localhost:8888/test2` -> Request/Response. 10000 requests/responses, one for each element
3. `curl localhost:8888/test3` -> Start a listend and trigger data verticle to send 1 by one without waiting
4. `curl localhost:8888/test4` -> Same line Test3, but send from inside executeBlocking
5. `curl localhost:8888/test5` -> Start a listener and trigger data verticle to send 1 by one **with** waiting10_000 elements
1. avg 17ms
2. avg 383ms
3. avg 41ms
4. avg 44ms
5. avg 344ms