Skip to content

Instantly share code, notes, and snippets.

View etishor's full-sized avatar

Iulian Margarintescu etishor

View GitHub Profile
@etishor
etishor / gist:32d2a502086d86ebe117
Created April 29, 2015 14:52
impact of adding a metrics.net timer
WorkWithoutTimer 1 threads 27,634 ops/sec | avg duration 36,189 ns | 27,634 avg ops/sec per thread
WorkWithoutTimer 2 threads 55,202 ops/sec | avg duration 36,231 ns | 27,601 avg ops/sec per thread
WorkWithoutTimer 4 threads 103,718 ops/sec | avg duration 38,568 ns | 25,930 avg ops/sec per thread
WorkWithoutTimer 6 threads 140,080 ops/sec | avg duration 42,840 ns | 23,347 avg ops/sec per thread
WorkWithoutTimer 8 threads 165,714 ops/sec | avg duration 48,968 ns | 20,714 avg ops/sec per thread
WorkWithoutTimer 16 threads 175,750 ops/sec | avg duration 113,574 ns | 10,984 avg ops/sec per thread
WorkWithoutTimer 32 threads 156,296 ops/sec | avg duration 212,504 ns | 5,861 avg ops/sec per thread
WorkWithTimer 1 threads 27,202 ops/sec | avg duration 36,762 ns | 27,202 avg ops/sec per thread
WorkWithTimer 2 threads 53,966 ops/sec | avg duration 37,063 ns | 26,983 avg ops/sec
@etishor
etishor / gist:3257c3b218246490bdb6
Created April 30, 2015 15:24
Performance improvements on Metrics.NET : 32 core Amazon EC2 instance
## Master branch on 32 core EC2
PS C:\temp\m-master> .\Metrics.StupidBenchmarks.exe meter -c 64
Meter 1 threads 388,000 ops/sec | avg duration 2,578 ns | 388,000 avg ops/sec per thread
Meter 2 threads 5,981,200 ops/sec | avg duration 334 ns | 2,990,600 avg ops/sec per thread
Meter 4 threads 4,268,600 ops/sec | avg duration 943 ns | 1,067,150 avg ops/sec per thread
Meter 6 threads 3,569,200 ops/sec | avg duration 1,749 ns | 594,867 avg ops/sec per thread
Meter 8 threads 3,447,200 ops/sec | avg duration 2,591 ns | 430,900 avg ops/sec per thread
Meter 16 threads 3,585,200 ops/sec | avg duration 4,942 ns | 224,075 avg ops/sec per thread
Meter 32 threads 4,705,200 ops/sec | avg duration 7,064 ns | 147,038 avg ops/sec per thread