Skip to content

Instantly share code, notes, and snippets.

@danieleteti
Last active September 18, 2022 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieleteti/1422ef290e20e9529106ae7c9aed0968 to your computer and use it in GitHub Desktop.
Save danieleteti/1422ef290e20e9529106ae7c9aed0968 to your computer and use it in GitHub Desktop.
MSHeap vs FastMemoryManager

MSHeap vs FastMM

Following tests have been executed with a plain DMVCFramework service hitted by 100 concurrent threads which issue 10000 requests in total.

Using default Memory Manager

C:\WORK\Apache24\bin\ab.exe -c 100 -n 10000 http://localhost:8080/api
Benchmarking localhost (be patient)
...
Finished 10000 requests

Concurrency Level:      100
Time taken for tests:   28.314 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      1830000 bytes
HTML transferred:       10000 bytes
>>> Requests per second:    353.18 [#/sec] (mean) <<<
Time per request:       283.138 [ms] (mean)
Time per request:       2.831 [ms] (mean, across all concurrent requests)
Transfer rate:          63.12 [Kbytes/sec] received

Using MSHeap

C:\WORK\Apache24\bin\ab.exe -c 100 -n 10000 http://localhost:8080/api
Benchmarking localhost (be patient)
...

Concurrency Level:      100
Time taken for tests:   2.054 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      1830000 bytes
HTML transferred:       10000 bytes
>>> Requests per second:    4869.63 [#/sec] (mean) <<<
Time per request:       20.535 [ms] (mean)
Time per request:       0.205 [ms] (mean, across all concurrent requests)
Transfer rate:          870.26 [Kbytes/sec] received
@edwinyzh
Copy link

Wow, that's a HUGE improvements!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment