fix report
This commit is contained in:
parent
84e8ea1ff9
commit
e9141e0f11
|
@ -35,11 +35,11 @@ Standard go library is pretty easy to use as you will see in the following examp
|
|||
|
||||
### startup
|
||||
|
||||
`NestJS` application takes between 15 and 25 seconds to startup. I’ve created a bash script that counts the whole process since you run npm start until API is reachable
|
||||
**NestJS** application takes between **15** and **25 seconds** to startup. I’ve created a bash script that counts the whole process since you run npm start until API is reachable
|
||||
|
||||

|
||||
|
||||
`go` API server startup takes couple milliseconds to start up
|
||||
**go** API server startup takes couple milliseconds to start up
|
||||
|
||||

|
||||
|
||||
|
@ -72,11 +72,12 @@ NestJS graphql took 40612ms to handle all requests. There is a huge difference:
|
|||
|
||||
Testing each one isolated we can see that:
|
||||
**nest** takes **16417ms** to handle 1000 requests
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
**go** takes 1410ms to handle 1000 requests this means go is 11.64 times faster than nest handling requests
|
||||

|
||||
|
||||
|
||||
|
||||
|
@ -84,40 +85,38 @@ Testing each one isolated we can see that:
|
|||
|
||||
Testing each one isolated we can see that:
|
||||
**nest** takes 75536ms to handle 5000 requests
|
||||
|
||||

|
||||
|
||||
|
||||
**go** takes 6191ms to handle 5000 requests this means go is 12.200 times faster than nest handling requests
|
||||
|
||||

|
||||
|
||||
|
||||
## 1000 requests per second on 3 seconds duration
|
||||
**nest**
|
||||
|
||||
nest
|
||||
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
**go**
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
## 1000 requests per second on 5 seconds duration
|
||||
|
||||
**nest** it tooks really long to handle all requests. These are some output results. I had to manually stop the test because It was going to crash my machine.
|
||||
|
||||

|
||||
|
||||
|
||||
**go** the first request is just 5 seconds, and then it increases up to 20 seconds due to resources. But handling this traffic with this response times, with 4-6h of development is insane.
|
||||
|
||||

|
||||
|
||||
|
||||
## 1000 requests per second on 10 seconds duration
|
||||
|
||||
**nest**
|
||||
|
||||
```bash
|
||||
+---+---------------------------+------------+
|
||||
| # | DESCRIPTION | ELAPSED |
|
||||
|
@ -725,7 +724,7 @@ As we can see comparing these results that go is the most efficient language to
|
|||
## go benchmark
|
||||
|
||||
Using go test -bench mode we are able to test both servers at same time and compare results. We can see go test can handle 1 operation in **4.42ms** which is a great response time while nest is 3 times more **13.94ms**
|
||||
|
||||

|
||||
|
||||
|
||||
## Database used
|
||||
|
|
Loading…
Reference in New Issue