Skip to content

Commit

Permalink
many small files benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
mdibaiee committed Feb 7, 2022
1 parent 8d45cbe commit 386c898
Show file tree
Hide file tree
Showing 103 changed files with 112 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ dirs-next = { version = "2.0.0", optional = true }
grep-cli = { version = "0.1.6", optional = true }
regex = { version = "1.0", optional = true }
walkdir = { version = "2.0", optional = true }
bytesize = {version = "1.1.0" }
bytesize = { version = "1.1.0" }

[dependencies.git2]
version = "0.13"
Expand Down
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 0
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 1
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 10
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-100.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 100
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-11.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 11
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-12.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 12
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-13.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 13
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-14.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 14
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-15.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 15
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-16.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 16
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-17.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 17
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-18.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 18
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-19.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 19
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 2
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-20.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 20
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-21.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 21
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-22.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 22
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-23.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 23
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-24.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 24
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-25.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 25
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-26.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 26
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-27.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 27
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-28.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 28
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-29.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 29
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 3
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-30.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 30
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-31.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 31
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-32.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 32
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-33.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 33
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-34.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 34
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-35.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 35
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-36.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 36
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-37.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 37
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-38.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 38
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-39.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 39
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 4
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-40.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 40
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-41.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 41
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-42.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 42
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-43.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 43
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-44.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 44
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-45.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 45
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-46.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 46
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-47.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 47
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-48.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 48
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-49.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 49
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 5
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-50.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 50
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-51.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 51
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-52.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 52
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-53.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 53
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-54.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 54
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-55.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 55
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-56.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 56
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-57.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 57
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-58.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 58
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-59.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 59
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 6
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-60.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 60
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-61.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 61
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-62.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 62
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-63.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 63
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-64.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 64
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-65.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 65
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-66.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 66
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-67.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 67
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-68.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 68
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-69.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 69
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 7
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-70.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 70
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-71.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 71
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-72.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 72
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-73.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 73
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-74.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 74
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-75.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 75
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-76.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 76
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-77.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 77
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-78.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 78
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-79.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 79
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 8
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-80.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 80
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-81.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 81
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-82.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 82
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-83.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 83
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-84.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 84
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-85.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 85
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-86.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 86
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-87.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 87
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-88.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 88
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-89.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 89
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-9.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 9
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-90.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 90
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-91.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 91
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-92.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 92
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-93.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 93
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-94.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 94
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-95.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 95
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-96.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 96
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-97.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 97
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-98.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 98
1 change: 1 addition & 0 deletions tests/benchmarks/many-small-files/small-file-99.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am small file 99
10 changes: 10 additions & 0 deletions tests/benchmarks/run-benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,13 @@ for wrap in character never; do
cat "$RESULT_DIR/syntax-highlighting-speed-${filename}.md" >> "$REPORT"
done
done


heading "Many small files speed (overhead of metadata)"
hyperfine \
"$(printf "%q" "$BAT") --no-config --language=txt --style=plain many-small-files/*.txt" \
--command-name 'bat … --language=txt *.txt' \
--warmup "$WARMUP_COUNT" \
--export-markdown "$RESULT_DIR/many-small-files-speed.md" \
--export-json "$RESULT_DIR/many-small-files-speed.json"
cat "$RESULT_DIR/many-small-files-speed.md" >> "$REPORT"

0 comments on commit 386c898

Please sign in to comment.