Skip to content

Commit f5084e3

Browse files
committed
added benchmark
1 parent cc14527 commit f5084e3

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,37 @@ task.Wait();
4343

4444
> NOTE: `DedicatedThreadPool` is marked as `internal` by default, so it can be used opaquely across many dependent projects.
4545
46+
## Benchmark
47+
48+
Latest benchmark on our build server (2 core Windows Azure A2 medium)
49+
50+
```xml
51+
[04:01:18][Step 1/1] Comparing Helios.Concurrency.DedicatedThreadPool vs System.Threading.ThreadPool for 10000 items
52+
[04:01:18][Step 1/1] DedicatedThreadFiber.NumThreads: 2
53+
[04:01:18][Step 1/1] System.Threading.ThreadPool
54+
[04:01:18][Step 1/1] 00:00:00.0060000
55+
[04:01:18][Step 1/1] Helios.Concurrency.DedicatedThreadPool
56+
[04:01:19][Step 1/1] 00:00:00.0100000
57+
[04:01:19][Step 1/1] Comparing Helios.Concurrency.DedicatedThreadPool vs System.Threading.ThreadPool for 100000 items
58+
[04:01:19][Step 1/1] DedicatedThreadFiber.NumThreads: 2
59+
[04:01:19][Step 1/1] System.Threading.ThreadPool
60+
[04:01:19][Step 1/1] 00:00:00.0520000
61+
[04:01:19][Step 1/1] Helios.Concurrency.DedicatedThreadPool
62+
[04:01:19][Step 1/1] 00:00:00.0420000
63+
[04:01:19][Step 1/1] Comparing Helios.Concurrency.DedicatedThreadPool vs System.Threading.ThreadPool for 1000000 items
64+
[04:01:19][Step 1/1] DedicatedThreadFiber.NumThreads: 2
65+
[04:01:19][Step 1/1] System.Threading.ThreadPool
66+
[04:01:23][Step 1/1] 00:00:00.6630000
67+
[04:01:23][Step 1/1] Helios.Concurrency.DedicatedThreadPool
68+
[04:01:26][Step 1/1] 00:00:00.4290000
69+
[04:01:26][Step 1/1] Comparing Helios.Concurrency.DedicatedThreadPool vs System.Threading.ThreadPool for 10000000 items
70+
[04:01:26][Step 1/1] DedicatedThreadFiber.NumThreads: 2
71+
[04:01:26][Step 1/1] System.Threading.ThreadPool
72+
[04:02:14][Step 1/1] 00:00:08.0290000
73+
[04:02:14][Step 1/1] Helios.Concurrency.DedicatedThreadPool
74+
[04:02:41][Step 1/1] 00:00:04.5240000
75+
```
76+
4677
## License
4778

4879
See [LICENSE](LICENSE) for details.

0 commit comments

Comments
 (0)