-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a small traces table for querying.
Suggested by @ghemawat. The traces table now contains only the information requied for querying. The new format is more space efficient and leads to faster querying. Also, insert all trace data into the database in a single transaction, as it is significantly more efficient: Before: cpu: Intel(R) Xeon(R) Gold 6154 CPU @ 3.00GHz BenchmarkStore BenchmarkStore/1 BenchmarkStore/1-72 100 10763759 ns/op BenchmarkStore/10 BenchmarkStore/10-72 10 108713097 ns/op BenchmarkStore/100 BenchmarkStore/100-72 1 1055861276 ns/op After: BenchmarkStore BenchmarkStore/1 BenchmarkStore/1-72 100 10609201 ns/op BenchmarkStore/10 BenchmarkStore/10-72 100 10700368 ns/op BenchmarkStore/100 BenchmarkStore/100-72 96 13052743 ns/op
- Loading branch information
1 parent
2bafa62
commit 711de94
Showing
4 changed files
with
109 additions
and
53 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
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
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
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