summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-26 22:19:22 +0300
committerPaul Buetow <paul@buetow.org>2025-06-26 22:19:22 +0300
commit947e08e4f9e3c9c44b346adff4eb6d68fa79a726 (patch)
treecfa94aba72f91d26657de09b7a5b6a23eff10fd7 /benchmarks
parent1e643ac66765fc0ab4224335191731d8b77fece2 (diff)
Refactor profiling and benchmarking tools from bash to Go
This major refactoring replaces all bash-based profiling and benchmarking scripts with a unified Go tool (dtail-tools) that provides: - Better cross-platform compatibility - Improved error handling and reliability - Structured data generation for test files - Consistent command-line interface - Easier maintenance and extensibility Key changes: - Created dtail-tools command with profile and benchmark subcommands - Implemented common utilities for data generation and file operations - Updated Makefile to use the new Go-based tools - Maintained backward compatibility with existing make targets - Fixed ParseSize to handle single-letter suffixes (10M, 1G, etc.) The new tool supports all previous functionality: - profile-quick, profile-all, profile-dmap - benchmark creation, comparison, and management - Test data generation with multiple formats - Profile analysis and listing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/baselines/baseline_20250626_221800_test-go-tools.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/benchmarks/baselines/baseline_20250626_221800_test-go-tools.txt b/benchmarks/baselines/baseline_20250626_221800_test-go-tools.txt
new file mode 100644
index 0000000..f0a3090
--- /dev/null
+++ b/benchmarks/baselines/baseline_20250626_221800_test-go-tools.txt
@@ -0,0 +1,19 @@
+Git commit: 1e643ac
+Date: 2025-06-26T22:18:00+03:00
+Tag: test-go-tools
+----------------------------------------
+goos: linux
+goarch: amd64
+pkg: github.com/mimecast/dtail/benchmarks
+cpu: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
+BenchmarkQuick/DCat/Size=10MB-8 6 181173485 ns/op 21.95 MB/sec 389277 lines/sec 12559493 B/op 145 allocs/op
+BenchmarkQuick/DGrep/Size=10MB/HitRate=1%-8 18 77521395 ns/op 51.49 MB/sec 1.000 hit_rate_% 909302 lines/sec 15392 matched_lines 3057298 B/op 106 allocs/op
+BenchmarkQuick/DGrep/Size=10MB/HitRate=10%-8 18 73942458 ns/op 54.51 MB/sec 10.00 hit_rate_% 953165 lines/sec 20993 matched_lines 5535970 B/op 106 allocs/op
+BenchmarkQuick/DGrep/Size=10MB/HitRate=50%-8 9 127598119 ns/op 32.94 MB/sec 50.00 hit_rate_% 550727 lines/sec 43423 matched_lines 11318582 B/op 124 allocs/op
+BenchmarkQuick/DGrep/Size=10MB/HitRate=90%-8 6 189819871 ns/op 22.88 MB/sec 90.00 hit_rate_% 370253 lines/sec 67110 matched_lines 21356996 B/op 145 allocs/op
+BenchmarkQuick/DMap/Size=10MB/Query=count-8 3 388142247 ns/op 19.90 MB/sec 180623 records/sec 52424 B/op 180 allocs/op
+BenchmarkQuick/DMap/Size=10MB/Query=sum_avg-8 3 375489915 ns/op 20.61 MB/sec 186798 records/sec 52274 B/op 180 allocs/op
+BenchmarkQuick/DMap/Size=10MB/Query=min_max-8 2 662630514 ns/op 11.68 MB/sec 105920 records/sec 71632 B/op 234 allocs/op
+BenchmarkQuick/DMap/Size=10MB/Query=multi-8 2 673522436 ns/op 11.51 MB/sec 104197 records/sec 71288 B/op 234 allocs/op
+PASS
+ok github.com/mimecast/dtail/benchmarks 21.815s