fiber/docs/benchmarks.md
2020-01-14 05:44:59 +01:00

1.2 KiB

Benchmarks

Benchmarks are performed by go-web-framework-benchmark on a digitalocean machine.

  • CPU Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz
  • MEM 4GB
  • GO go1.13.6 linux/amd64
  • OS Ubuntu 18.04.3 LTS

Basic Test

The first test case is to mock 0 ms, 10 ms, 100 ms, 500 ms processing time in handlers.

the concurrency clients are 5000.

Latency is the time of real processing time by web servers. The smaller is the better.

Allocs is the heap allocations by web servers when test is running. The unit is MB. The smaller is the better.

If we enable http pipelining, test result as below:

Basic Test

In 30 ms processing time, the test result for 100, 1000, 5000 clients is:

If we enable http pipelining, test result as below:

CPU-Bound Test