B4J server library is based on an open source project named Jetty.
Jetty server performance is excellent which means that B4J server performance is also excellent.
The following numbers are the result of a simple test where one program sends many requests to the server program. Both running on the same computer.
The actual numbers are not very important and should not be taken too seriously. The main point is that a B4J server can easily handle huge traffic.
The numbers were measured in Release mode.
Jetty server performance is excellent which means that B4J server performance is also excellent.
The following numbers are the result of a simple test where one program sends many requests to the server program. Both running on the same computer.
The actual numbers are not very important and should not be taken too seriously. The main point is that a B4J server can easily handle huge traffic.
The numbers were measured in Release mode.
- Simple handler that writes some text as the response: >2000 requests per second.
- Handler that connects to a local MySQL database (wamp installation) and issues a SELECT query (using ConnectionPool): >2000 requests per second
- Same handler in single threaded mode: ~1300 requests per second
- Handler that issues an INSERT command to the MySQL database: ~180 requests per second
- Same handler in single threaded mode: ~35 requests per second