We ran 2 tests on Rust, Go Lang, Dart and JavaScript using the k6 open source tool to measure performance. The base project was the same for the 4 languages, only one Get endpoint that retrieves a simple JSON message, {"name": "John Doe"},. To keep performance as good as possible in every case we disabled the logs of the server requests. For more info about the projects we're going to put the repos in the message below.
First Test (To break the server):
from 0 VUs (Virtual Users) to 20,000 in 5min
from 20,000 VUs to 0 in 2m
Second Test (To stress the server):
from 0 VUs to 5,000 in 3m and holding it for 2m
from 5,000 VUs to 10,000 in 3m and holding it for 2m
from 10,000 VUs to 0 in 1m
RESULTS
JS:
First Test (it broke at 11,000 VUs approx.):
Second Test:
Dart:
First Test (it broke at 13,000 VUs approx.):
Second Test:
Go:
First Test (it broke at 16,000 VUs approx.):
Second Test:
Rust
First Test (it broke at 17,000 VUs approx.)::
Second Test:
CONCLUSIONSDart seems to be more closer to Go and Rust than to JS in our rudimentary performance tests, but something to keep in account is that Dart Backend is still very raw and it's in an early stage, so there is a lot of development to be done, and something that we noticed is that Dart may lack of scalability when speaking about micro services, that's because we don't currently have an approach to solve this problem.
We ran 2 tests on Rust, Go Lang, Dart and JavaScript using the k6 open source tool to measure performance. The base project was the same for the 4 languages, only one Get endpoint that retrieves a simple JSON message, {"name": "John Doe"},. To keep performance as good as possible in every case we disabled the logs of the server requests. For more info about the projects we're going to put the repos in the message below.
First Test (To break the server):
Second Test (To stress the server):
RESULTS
JS: First Test (it broke at 11,000 VUs approx.):
Second Test:
Dart: First Test (it broke at 13,000 VUs approx.):
Second Test:
Go: First Test (it broke at 16,000 VUs approx.):
Second Test:
Rust First Test (it broke at 17,000 VUs approx.)::
Second Test:
CONCLUSIONS Dart seems to be more closer to Go and Rust than to JS in our rudimentary performance tests, but something to keep in account is that Dart Backend is still very raw and it's in an early stage, so there is a lot of development to be done, and something that we noticed is that Dart may lack of scalability when speaking about micro services, that's because we don't currently have an approach to solve this problem.