Skip to content

Commit

Permalink
p7100: add perf test for odb--daemon
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Hostetler <[email protected]>
  • Loading branch information
jeffhostetler authored and vdye committed Apr 22, 2024
1 parent 3ef8853 commit 5be1a55
Showing 1 changed file with 104 additions and 0 deletions.
104 changes: 104 additions & 0 deletions t/perf/p7100-odb-daemon.sh
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

0 comments on commit 5be1a55

Please sign in to comment.