benchmarks: rename cache benchmarks

The default in the world is to have a disk cache; it's exceptional to
_not_. Flip our naming, so that the (exceptional) `nocache` tests are
called out explicitly.
This commit is contained in:
Edward Thomson
2025-01-14 23:43:54 +00:00
parent 1c485493cc
commit 8d8ab0b110
18 changed files with 41 additions and 41 deletions

View File

@@ -2,6 +2,6 @@
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "create_text_file text_100kb 102400 &&
flush_disk_cache" \
gitbench --prepare "create_text_file text_100kb 102400" \
--warmup 5 \
hash-object "text_100kb"

View File

@@ -2,6 +2,6 @@
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "create_text_file text_10mb 10485760 &&
flush_disk_cache" \
gitbench --prepare "create_text_file text_10mb 10485760" \
--warmup 5 \
hash-object "text_10mb"

View File

@@ -2,6 +2,6 @@
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "create_text_file text_1kb 1024 &&
flush_disk_cache" \
gitbench --prepare "create_text_file text_1kb 1024" \
--warmup 5 \
hash-object "text_1kb"

View File

@@ -1,7 +0,0 @@
#!/bin/bash -e
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "create_text_file text_100kb 102400" \
--warmup 5 \
hash-object "text_100kb"

View File

@@ -1,7 +0,0 @@
#!/bin/bash -e
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "create_text_file text_10mb 10485760" \
--warmup 5 \
hash-object "text_10mb"

View File

@@ -1,7 +0,0 @@
#!/bin/bash -e
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "create_text_file text_1kb 1024" \
--warmup 5 \
hash-object "text_1kb"

View File

@@ -0,0 +1,7 @@
#!/bin/bash -e
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "create_text_file text_100kb 102400 &&
flush_disk_cache" \
hash-object "text_100kb"

View File

@@ -0,0 +1,7 @@
#!/bin/bash -e
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "create_text_file text_10mb 10485760 &&
flush_disk_cache" \
hash-object "text_10mb"

View File

@@ -0,0 +1,7 @@
#!/bin/bash -e
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "create_text_file text_1kb 1024 &&
flush_disk_cache" \
hash-object "text_1kb"

View File

@@ -3,7 +3,7 @@
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "sandbox_repo empty_standard_repo &&
create_text_file text_100kb 102400 &&
flush_disk_cache" \
create_text_file text_100kb 102400" \
--warmup 5 \
--chdir "empty_standard_repo" \
hash-object -w "../text_100kb"
hash-object "../text_100kb"

View File

@@ -3,7 +3,7 @@
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "sandbox_repo empty_standard_repo &&
create_text_file text_10mb 10485760 &&
flush_disk_cache" \
create_text_file text_10mb 10485760" \
--warmup 5 \
--chdir "empty_standard_repo" \
hash-object "../text_10mb"

View File

@@ -3,7 +3,7 @@
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "sandbox_repo empty_standard_repo &&
create_text_file text_1kb 1024 &&
flush_disk_cache" \
create_text_file text_1kb 1024" \
--warmup 5 \
--chdir "empty_standard_repo" \
hash-object "../text_1kb"

View File

@@ -3,7 +3,7 @@
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "sandbox_repo empty_standard_repo &&
create_text_file text_100kb 102400" \
--warmup 5 \
create_text_file text_100kb 102400 &&
flush_disk_cache" \
--chdir "empty_standard_repo" \
hash-object "../text_100kb"
hash-object -w "../text_100kb"

View File

@@ -3,7 +3,7 @@
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "sandbox_repo empty_standard_repo &&
create_text_file text_10mb 10485760" \
--warmup 5 \
create_text_file text_10mb 10485760 &&
flush_disk_cache" \
--chdir "empty_standard_repo" \
hash-object "../text_10mb"

View File

@@ -3,7 +3,7 @@
. "$(dirname "$0")/benchmark_helpers.sh"
gitbench --prepare "sandbox_repo empty_standard_repo &&
create_text_file text_1kb 1024" \
--warmup 5 \
create_text_file text_1kb 1024 &&
flush_disk_cache" \
--chdir "empty_standard_repo" \
hash-object "../text_1kb"