{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/5943","repository_url":"https://api.github.com/repos/dotnet/coreclr","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/5943/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/5943/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/5943/events","html_url":"https://github.com/dotnet/coreclr/pull/5943","id":161837739,"number":5943,"title":"[Wip] Improve Threadpool QUWI throughput","user":{"login":"benaadams","id":1142958,"avatar_url":"https://avatars.githubusercontent.com/u/1142958?v=3","gravatar_id":"","url":"https://api.github.com/users/benaadams","html_url":"https://github.com/benaadams","followers_url":"https://api.github.com/users/benaadams/followers","following_url":"https://api.github.com/users/benaadams/following{/other_user}","gists_url":"https://api.github.com/users/benaadams/gists{/gist_id}","starred_url":"https://api.github.com/users/benaadams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benaadams/subscriptions","organizations_url":"https://api.github.com/users/benaadams/orgs","repos_url":"https://api.github.com/users/benaadams/repos","events_url":"https://api.github.com/users/benaadams/events{/privacy}","received_events_url":"https://api.github.com/users/benaadams/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/coreclr/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"ericeil","id":7407587,"avatar_url":"https://avatars.githubusercontent.com/u/7407587?v=3","gravatar_id":"","url":"https://api.github.com/users/ericeil","html_url":"https://github.com/ericeil","followers_url":"https://api.github.com/users/ericeil/followers","following_url":"https://api.github.com/users/ericeil/following{/other_user}","gists_url":"https://api.github.com/users/ericeil/gists{/gist_id}","starred_url":"https://api.github.com/users/ericeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericeil/subscriptions","organizations_url":"https://api.github.com/users/ericeil/orgs","repos_url":"https://api.github.com/users/ericeil/repos","events_url":"https://api.github.com/users/ericeil/events{/privacy}","received_events_url":"https://api.github.com/users/ericeil/received_events","type":"User","site_admin":false},"assignees":[{"login":"ericeil","id":7407587,"avatar_url":"https://avatars.githubusercontent.com/u/7407587?v=3","gravatar_id":"","url":"https://api.github.com/users/ericeil","html_url":"https://github.com/ericeil","followers_url":"https://api.github.com/users/ericeil/followers","following_url":"https://api.github.com/users/ericeil/following{/other_user}","gists_url":"https://api.github.com/users/ericeil/gists{/gist_id}","starred_url":"https://api.github.com/users/ericeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericeil/subscriptions","organizations_url":"https://api.github.com/users/ericeil/orgs","repos_url":"https://api.github.com/users/ericeil/repos","events_url":"https://api.github.com/users/ericeil/events{/privacy}","received_events_url":"https://api.github.com/users/ericeil/received_events","type":"User","site_admin":false},{"login":"kouvel","id":13499639,"avatar_url":"https://avatars.githubusercontent.com/u/13499639?v=3","gravatar_id":"","url":"https://api.github.com/users/kouvel","html_url":"https://github.com/kouvel","followers_url":"https://api.github.com/users/kouvel/followers","following_url":"https://api.github.com/users/kouvel/following{/other_user}","gists_url":"https://api.github.com/users/kouvel/gists{/gist_id}","starred_url":"https://api.github.com/users/kouvel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kouvel/subscriptions","organizations_url":"https://api.github.com/users/kouvel/orgs","repos_url":"https://api.github.com/users/kouvel/repos","events_url":"https://api.github.com/users/kouvel/events{/privacy}","received_events_url":"https://api.github.com/users/kouvel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":26,"created_at":"2016-06-23T04:27:30Z","updated_at":"2016-07-27T00:10:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/coreclr/pulls/5943","html_url":"https://github.com/dotnet/coreclr/pull/5943","diff_url":"https://github.com/dotnet/coreclr/pull/5943.diff","patch_url":"https://github.com/dotnet/coreclr/pull/5943.patch"},"body":"11% Improvement for regular queuing (1.6sec over 10M QUWI)\r\n19.4% improvement for high thread count queuing (MinWorkerThreads=500)  (7.2sec over 10M QUWI)\r\n\r\nTest project: https://gist.github.com/benaadams/b022934e62a3ac1c4f261be3216b1111\r\n\r\n10M threadpool queues and executes. Changed items in red, `ExecutionContext.Run` highlighted and list past `ExecutionContext.Restore` for relative comparison.\r\n\r\nThreadpool QUWI before\r\n![threadpool-before](https://aoa.blob.core.windows.net/aspnet/threadpool-before.png)\r\n\r\nThreadpool QUWI after 2nd Update\r\n![threadpool-after-2](https://aoa.blob.core.windows.net/aspnet/threadpool-after-2.png)\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/comments/235444173","html_url":"https://github.com/dotnet/coreclr/pull/5943#issuecomment-235444173","issue_url":"https://api.github.com/repos/dotnet/coreclr/issues/5943","id":235444173,"user":{"login":"benaadams","id":1142958,"avatar_url":"https://avatars.githubusercontent.com/u/1142958?v=3","gravatar_id":"","url":"https://api.github.com/users/benaadams","html_url":"https://github.com/benaadams","followers_url":"https://api.github.com/users/benaadams/followers","following_url":"https://api.github.com/users/benaadams/following{/other_user}","gists_url":"https://api.github.com/users/benaadams/gists{/gist_id}","starred_url":"https://api.github.com/users/benaadams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benaadams/subscriptions","organizations_url":"https://api.github.com/users/benaadams/orgs","repos_url":"https://api.github.com/users/benaadams/repos","events_url":"https://api.github.com/users/benaadams/events{/privacy}","received_events_url":"https://api.github.com/users/benaadams/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T00:10:09Z","updated_at":"2016-07-27T00:10:09Z","body":"@stephentoub working on some tests https://github.com/benaadams/ThreadPoolTaskTesting\r\n\r\nNeed to add `.Continuation`s and `Task<T>` produces output as the following; tests seem ok?\r\n\r\n```\r\nTesting 2,621,440 calls, with GCs after 262,144 calls.\r\nOperations per second on 4 Cores\r\n                                                                       Parallelism\r\n                            Serial          2x         16x         64x        512x\r\nQUWI                      11.207 M    11.133 M    10.367 M    11.995 M    12.728 M\r\n- Depth    2               9.840 M     8.643 M     9.060 M     9.680 M     9.849 M\r\n- Depth   16              10.316 M     9.967 M    10.142 M    10.262 M    10.167 M\r\n- Depth   64              10.180 M    10.281 M    10.434 M    10.516 M    10.432 M\r\n- Depth  512              10.165 M    10.404 M    10.478 M    10.561 M    10.370 M\r\n\r\nYielding Await           777.115 k     1.777 M     4.330 M     4.297 M     4.442 M\r\n- Depth    2               1.119 M     2.632 M     5.864 M     5.989 M     5.865 M\r\n- Depth   16               3.170 M     7.062 M     8.017 M     8.157 M     8.037 M\r\n- Depth   64               3.801 M     7.728 M     8.371 M     8.307 M     8.406 M\r\n- Depth  512               4.159 M     7.878 M     7.588 M     8.163 M     7.624 M\r\n\r\nAsync Awaited            612.523 k   938.077 k     3.019 M     3.187 M     3.215 M\r\n- Depth    2             967.841 k     1.327 M     4.680 M     4.848 M     4.772 M\r\n- Depth   16               1.952 M     3.633 M     7.471 M     8.064 M     7.857 M\r\n- Depth   64               2.066 M     4.224 M     8.416 M     8.179 M     8.440 M\r\n- Depth  512               2.176 M     4.377 M     6.715 M     7.126 M     8.114 M\r\n\r\nAsync PassThrough        608.733 k   945.321 k     2.988 M     3.444 M     3.413 M\r\n- Depth    2               1.185 M     1.515 M     6.717 M     6.939 M     6.949 M\r\n- Depth   16              10.090 M    15.450 M    54.967 M    44.132 M    51.816 M\r\n- Depth   64              38.301 M    18.645 M   165.344 M   202.727 M   168.579 M\r\n- Depth  512             274.373 M   524.928 M     1.028 B     1.040 B   571.730 M\r\n\r\nCompleted Awaited         23.897 M    46.998 M    88.617 M    89.584 M    84.225 M\r\n- Depth    2              25.996 M    52.894 M    99.585 M    98.614 M    92.834 M\r\n- Depth   16              20.297 M    40.554 M    75.178 M    75.558 M    71.595 M\r\n- Depth   64              19.189 M    38.543 M    70.893 M    70.111 M    67.075 M\r\n- Depth  512              18.494 M    37.213 M    69.032 M    66.975 M    67.496 M\r\n\r\nCachedTask Awaited        23.465 M    48.319 M    87.310 M    87.725 M    87.067 M\r\n- Depth    2              26.575 M    52.979 M    96.709 M    95.250 M    93.352 M\r\n- Depth   16              20.586 M    40.269 M    73.974 M    75.871 M    73.815 M\r\n- Depth   64              18.858 M    38.509 M    69.453 M    70.659 M    69.170 M\r\n- Depth  512              18.732 M    37.364 M    69.064 M    67.129 M    67.454 M\r\n\r\nCachedTask CheckAwait    113.367 M   229.085 M   429.308 M   424.339 M   360.767 M\r\n- Depth    2             137.955 M   270.930 M   476.011 M   488.828 M   406.236 M\r\n- Depth   16             152.997 M   304.613 M   574.248 M   548.361 M   427.990 M\r\n- Depth   64              93.764 M   178.281 M   326.802 M   327.406 M   275.967 M\r\n- Depth  512              82.238 M   163.306 M   301.808 M   293.775 M   240.028 M\r\n\r\nCachedTask PassThrough   120.011 M   236.834 M   423.852 M   428.908 M   351.923 M\r\n- Depth    2             199.613 M   391.400 M   700.452 M   703.723 M   518.974 M\r\n- Depth   16             575.774 M     1.086 B     1.932 B     1.835 B     1.042 B\r\n- Depth   64             935.627 M     1.747 B     2.879 B     2.381 B     1.185 B\r\n- Depth  512               1.412 B     2.612 B     4.118 B     3.045 B     1.363 B\r\n```"}}
{"actor":{"display_login":"benaadams"}}