-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
p7100: add perf test for odb--daemon
Signed-off-by: Jeff Hostetler <[email protected]>
- Loading branch information
1 parent
3ef8853
commit 5be1a55
Showing
1 changed file
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
#!/bin/sh | ||
|
||
test_description="Test git odb--daemon" | ||
|
||
. ./perf-lib.sh | ||
|
||
test_perf_large_repo | ||
test_checkout_worktree | ||
|
||
test_odb_daemon_suite() { | ||
test_perf "status ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE status >/dev/null | ||
' | ||
test_perf "status ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE status >/dev/null | ||
' | ||
test_perf "status ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE status >/dev/null | ||
' | ||
test_perf "status ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE status >/dev/null | ||
' | ||
|
||
test_perf "diff ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE diff HEAD~1 >/dev/null | ||
' | ||
test_perf "diff ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE diff HEAD~1 >/dev/null | ||
' | ||
test_perf "diff ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE diff HEAD~1 >/dev/null | ||
' | ||
test_perf "diff ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE diff HEAD~1 >/dev/null | ||
' | ||
|
||
test_perf "log -200 ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE log -200 >/dev/null | ||
' | ||
test_perf "log -200 ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE log -200 >/dev/null | ||
' | ||
test_perf "log -200 ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE log -200 >/dev/null | ||
' | ||
test_perf "log -200 ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE log -200 >/dev/null | ||
' | ||
|
||
test_perf "rev-list HEAD^{tree} ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE rev-list --objects HEAD^{tree} >/dev/null | ||
' | ||
test_perf "rev-list HEAD^{tree} ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE rev-list --objects HEAD^{tree} >/dev/null | ||
' | ||
test_perf "rev-list HEAD^{tree} ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE rev-list --objects HEAD^{tree} >/dev/null | ||
' | ||
test_perf "rev-list HEAD^{tree} ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE rev-list --objects HEAD^{tree} >/dev/null | ||
' | ||
|
||
test_perf "rev-list HEAD ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE rev-list --objects HEAD >/dev/null | ||
' | ||
test_perf "rev-list HEAD ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE rev-list --objects HEAD >/dev/null | ||
' | ||
test_perf "rev-list HEAD ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE rev-list --objects HEAD >/dev/null | ||
' | ||
test_perf "rev-list HEAD ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE rev-list --objects HEAD >/dev/null | ||
' | ||
|
||
test_perf "rev-list --all ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE rev-list --objects --all >/dev/null | ||
' | ||
test_perf "rev-list --all ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE rev-list --objects --all >/dev/null | ||
' | ||
test_perf "rev-list --all ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE rev-list --objects --all >/dev/null | ||
' | ||
test_perf "rev-list --all ($ENABLE)" ' | ||
git -c core.useodboveripc=$ENABLE rev-list --objects --all >/dev/null | ||
' | ||
} | ||
|
||
ENABLE=0 | ||
test_odb_daemon_suite | ||
|
||
test_expect_success "Start odb--daemon" ' | ||
(git odb--daemon --run &) | ||
' | ||
|
||
ENABLE=1 | ||
test_odb_daemon_suite | ||
|
||
test_expect_success "Stop odb--daemon" ' | ||
git odb--daemon --stop | ||
' | ||
|
||
test_done |