Title: Concurrent execution results in uneven work per thread · Issue #861 · pre-commit/pre-commit · GitHub
Open Graph Title: Concurrent execution results in uneven work per thread · Issue #861 · pre-commit/pre-commit
X Title: Concurrent execution results in uneven work per thread · Issue #861 · pre-commit/pre-commit
Description: I'm running pre-commit from current master to test the concurrency feature introduced with #851. While it in general seems to work, work is distributed pretty uneven. One hook we run is prospector which is nice for testing, because it ta...
Open Graph Description: I'm running pre-commit from current master to test the concurrency feature introduced with #851. While it in general seems to work, work is distributed pretty uneven. One hook we run is prospector ...
X Description: I'm running pre-commit from current master to test the concurrency feature introduced with #851. While it in general seems to work, work is distributed pretty uneven. One hook we run is prospec...
Opengraph URL: https://github.com/pre-commit/pre-commit/issues/861
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Concurrent execution results in uneven work per thread","articleBody":"I'm running `pre-commit` from current `master` to test the concurrency feature introduced with #851. While it in general seems to work, work is distributed pretty uneven. One hook we run is [`prospector`](https://github.com/guykisel/prospector-mirror) which is nice for testing, because it takes a relatively long time and it prints the time taken in its output.\r\n\r\nRunning `pre-commit run -a --verbose prospector | grep \"Time Taken\"` on a medium sized project (~100 Python files) results in the following distribution of work to the available 4 logical CPU cores:\r\n```\r\nTime Taken: 17.10 seconds\r\nTime Taken: 8.70 seconds\r\nTime Taken: 18.68 seconds\r\nTime Taken: 108.02 seconds\r\n```\r\n\r\nEspecially compared to running it with concurrency disabled (using `PRE_COMMIT_NO_CONCURRENCY`), it's pretty obvious that concurrency doesn't provide any real benefit here:\r\n```\r\nTime Taken: 116.95 seconds\r\n```\r\n\r\nI'd be happy to help debugging this further. Just tell me what other information you need. :slightly_smiling_face: ","author":{"url":"https://github.com/Dunedan","@type":"Person","name":"Dunedan"},"datePublished":"2018-11-07T09:30:22Z","url":"https://github.com/pre-commit/pre-commit/issues/861"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f73de0b4-c764-a0d4-af92-90530f4af1c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB94:1FDCFC:1B824E0:2431AC5:6B068108 |
| html-safe-nonce | e2936d8f4148adc03a32c1b87424891dd63df97f0fff1554e78e7465452397d4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjk0OjFGRENGQzoxQjgyNEUwOjI0MzFBQzU6NkIwNjgxMDgiLCJ2aXNpdG9yX2lkIjoiMzU5MTM1NjU1OTgzOTg4NzYyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ac1652a7b0fb98d077bb8e1225bf9b5a61fdd4358a2b940adc673917e6e65c21 |
| hovercard-subject-tag | issue:378206621 |
| github-keyboard-shortcuts | repository,issues,commits,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pre-commit/pre-commit/861/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c681a54567f8fff450fd1ae8ccf18fb8f276329658332849437bda89f2e04671/pre-commit/pre-commit/issues/861 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c681a54567f8fff450fd1ae8ccf18fb8f276329658332849437bda89f2e04671/pre-commit/pre-commit/issues/861 |
| og:image:alt | I'm running pre-commit from current master to test the concurrency feature introduced with #851. While it in general seems to work, work is distributed pretty uneven. One hook we run is prospector ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Dunedan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git |
| octolytics-dimension-user_id | 6943086 |
| octolytics-dimension-user_login | pre-commit |
| octolytics-dimension-repository_id | 17689377 |
| octolytics-dimension-repository_nwo | pre-commit/pre-commit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17689377 |
| octolytics-dimension-repository_network_root_nwo | pre-commit/pre-commit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width