{"thread":{"id":"45731","subject":"[PATCH] p3400: add perf tests for rebasing many changes","startedAt":"2017-04-18T14:13:31Z","lastAt":"2017-04-18T14:13:31Z","messageCount":1,"participants":["Christian Couder"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"317106","messageId":"20170418141309.20381-1-chriscool@tuxfamily.org","threadId":"45731","inReplyTo":null,"subject":"[PATCH] p3400: add perf tests for rebasing many changes","fromName":"Christian Couder","fromEmail":"christian.couder@gmail.com","sentAt":"2017-04-18T14:13:09Z","receivedAt":"2017-04-18T14:13:31Z","isPatch":true,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Rebasing onto many changes is interesting, but it's also\ninteresting to see what happens when rebasing many changes.\n\nAnd while at it, let's also look at the impact of using a\nsplit index.\n\nSigned-off-by: Christian Couder <chriscool@tuxfamily.org>\n---\n t/perf/p3400-rebase.sh | 22 +++++++++++++++++++++-\n 1 file changed, 21 insertions(+), 1 deletion(-)\n\ndiff --git a/t/perf/p3400-rebase.sh b/t/perf/p3400-rebase.sh\nindex b3e7d525d2..ce271ca4c1 100755\n--- a/t/perf/p3400-rebase.sh\n+++ b/t/perf/p3400-rebase.sh\n@@ -5,7 +5,7 @@ test_description='Tests rebase performance'\n \n test_perf_default_repo\n \n-test_expect_success 'setup' '\n+test_expect_success 'setup rebasing on top of a lot of changes' '\n \tgit checkout -f -b base &&\n \tgit checkout -b to-rebase &&\n \tgit checkout -b upstream &&\n@@ -33,4 +33,24 @@ test_perf 'rebase on top of a lot of unrelated changes' '\n \tgit rebase --onto base HEAD^\n '\n \n+test_expect_success 'setup rebasing many changes without split-index' '\n+\tgit config core.splitIndex false &&\n+\tgit checkout -b upstream2 to-rebase &&\n+\tgit checkout -b to-rebase2 upstream\n+'\n+\n+test_perf 'rebase a lot of unrelated changes without split-index' '\n+\tgit rebase --onto upstream2 base &&\n+\tgit rebase --onto base upstream2\n+'\n+\n+test_expect_success 'setup rebasing many changes with split-index' '\n+\tgit config core.splitIndex true\n+'\n+\n+test_perf 'rebase a lot of unrelated changes with split-index' '\n+\tgit rebase --onto upstream2 base &&\n+\tgit rebase --onto base upstream2\n+'\n+\n test_done\n-- \n2.12.2.635.gf331bb6d3a.dirty\n\n"}]}