view contrib/python3-whitelist @ 35599:af25237be091

perf: add threading capability to perfbdiff Since we are releasing the GIL during diffing, it is interesting to see how a thread pool would perform on diffing. We add a new `--threads` argument to commands. Synchronizing the thread pool is a bit complex because we want to be able to reuse it from one run to another. On my computer (i7 with 4 cores + hyperthreading), I get the following data for about 12000 revisions: threads wall comb wall gain comb overhead none 31.596715 31.59 0.00% 0.00% 1 31.621228 31.62 -0.08% 0.09% 2 16.406202 32.8 48.08% 3.83% 3 11.598334 34.76 63.29% 10.03% 4 9.205421 36.77 70.87% 16.40% 5 8.517604 42.51 73.04% 34.57% 6 7.94645 47.58 74.85% 50.62% 7 7.434972 51.92 76.47% 64.36% 8 7.070638 55.34 77.62% 75.18% Compared to the feature disabled (threads=0), the overhead is negligible with the threading code (threads=1), and the gain is already 48% with two threads.
author Boris Feld <boris.feld@octobus.net>
date Sun, 17 Dec 2017 04:31:27 +0100
parents aaeba70d5cbe
children a71316bfac87
line wrap: on
line source

test-add.t
test-addremove-similar.t
test-addremove.t
test-ancestor.py
test-automv.t
test-backwards-remove.t
test-bheads.t
test-bisect2.t
test-bookmarks-merge.t
test-bookmarks-strip.t
test-branch-tag-confict.t
test-casecollision.t
test-cat.t
test-changelog-exec.t
test-check-commit.t
test-check-execute.t
test-check-module-imports.t
test-check-pyflakes.t
test-check-pylint.t
test-check-shbang.t
test-children.t
test-commit-unresolved.t
test-completion.t
test-contrib-check-code.t
test-contrib-check-commit.t
test-debugrename.t
test-diff-copy-depth.t
test-diff-hashes.t
test-diff-issue2761.t
test-diff-newlines.t
test-diff-reverse.t
test-diff-subdir.t
test-diffdir.t
test-directaccess.t
test-dirstate-nonnormalset.t
test-doctest.py
test-double-merge.t
test-duplicateoptions.py
test-empty-dir.t
test-empty-file.t
test-empty.t
test-encoding-func.py
test-excessive-merge.t
test-execute-bit.t
test-gpg.t
test-hghave.t
test-imports-checker.t
test-issue1089.t
test-issue1502.t
test-issue1802.t
test-issue1877.t
test-issue1993.t
test-issue522.t
test-issue612.t
test-issue619.t
test-issue672.t
test-issue842.t
test-journal-exists.t
test-locate.t
test-lrucachedict.py
test-manifest.py
test-manifest-merging.t
test-match.py
test-merge-default.t
test-merge-internal-tools-pattern.t
test-merge-remove.t
test-merge-revert.t
test-merge-revert2.t
test-merge-subrepos.t
test-merge10.t
test-merge2.t
test-merge4.t
test-merge5.t
test-merge6.t
test-merge7.t
test-merge8.t
test-mq-qimport-fail-cleanup.t
test-permissions.t
test-push-checkheads-partial-C1.t
test-push-checkheads-partial-C2.t
test-push-checkheads-partial-C3.t
test-push-checkheads-partial-C4.t
test-push-checkheads-pruned-B1.t
test-push-checkheads-pruned-B2.t
test-push-checkheads-pruned-B3.t
test-push-checkheads-pruned-B4.t
test-push-checkheads-pruned-B5.t
test-push-checkheads-pruned-B6.t
test-push-checkheads-pruned-B7.t
test-push-checkheads-pruned-B8.t
test-push-checkheads-superceed-A1.t
test-push-checkheads-superceed-A2.t
test-push-checkheads-superceed-A3.t
test-push-checkheads-superceed-A4.t
test-push-checkheads-superceed-A5.t
test-push-checkheads-superceed-A6.t
test-push-checkheads-superceed-A7.t
test-push-checkheads-superceed-A8.t
test-push-checkheads-unpushed-D1.t
test-push-checkheads-unpushed-D2.t
test-push-checkheads-unpushed-D3.t
test-push-checkheads-unpushed-D4.t
test-push-checkheads-unpushed-D5.t
test-push-checkheads-unpushed-D6.t
test-push-checkheads-unpushed-D7.t
test-record.t
test-rename-dir-merge.t
test-rename-merge1.t
test-rename.t
test-revert-flags.t
test-revert-unknown.t
test-revlog-group-emptyiter.t
test-revlog-mmapindex.t
test-revlog-packentry.t
test-run-tests.py
test-show-stack.t
test-simple-update.t
test-sparse-clear.t
test-sparse-merges.t
test-sparse-requirement.t
test-sparse-verbose-json.t
test-status-terse.t
test-uncommit.t
test-unified-test.t
test-unrelated-pull.t
test-update-issue1456.t
test-update-names.t
test-update-reverse.t
test-xdg.t