-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update bench #1
Open
vadimalekseev
wants to merge
1
commit into
ozontech:main
Choose a base branch
from
vadimalekseev:update-bench
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update bench #1
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,27 @@ | ||
OS := $(shell uname | awk '{print tolower($$0)}') | ||
|
||
.PHONY: generate | ||
generate: | ||
pushd ./bench && \ | ||
rm ./bench-data/*.nljson 2> /dev/null || true && \ | ||
go mod download && go run ./generate.go ./logger.go -file-count 256 -line-count 4096 && \ | ||
popd | ||
rm -f ./bench-data/*.nljson || true | ||
go run ./bench/generate -file-count 256 -line-count 4096 | ||
|
||
.PHONY: bench | ||
bench: | ||
go mod download && go run ./bench/bench.go ./bench/logger.go | ||
go run ./bench/server | ||
|
||
.PHONY: bench-file-d | ||
bench-file-d: | ||
pushd ./file.d && \ | ||
rm offsets || true && \ | ||
./file.d_$(OS) --config config.yaml && \ | ||
popd | ||
rm ./file.d/offsets || true | ||
./file.d/file.d --config ./file.d/config.yaml | ||
|
||
.PHONY: bench-fluent-bit | ||
bench-fluent-bit: | ||
./fluentbit/fluent-bit fluent-bit -c fluentbit/config.toml | ||
|
||
.PHONY: bench-filebeat | ||
bench-filebeat: | ||
pushd ./filebeat && \ | ||
rm -r data || true && \ | ||
./filebeat_$(OS) -c config.yaml && \ | ||
popd | ||
rm -rf ./filebeat/data || true | ||
./filebeat/filebeat -c ./filebeat/config.yaml | ||
|
||
.PHONY: bench-vector | ||
bench-vector: | ||
pushd ./vector && \ | ||
rm -r ./logs || true && \ | ||
./vector_$(OS) --config config.toml && \ | ||
popd | ||
rm ./logs/checkpoints.json || true | ||
./vector/vector --config ./vector/config.toml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
# Benchmarks | ||
|
||
Pipeline: File > JSON > Elastic Search | ||
Pipeline: File > JSON > Elastic Search | ||
|
||
Supported tools for benchmarking: | ||
* File.d | ||
* Vector | ||
* Filebeat | ||
|
||
Works only on MacOS. | ||
* File.d v0.25.2 | ||
* Vector v0.38.0 | ||
* Filebeat 7.17.13 | ||
|
||
Works only on x86-64 MacOS/Linux. | ||
|
||
How to run: | ||
|
||
* Download a log collector binary to its folder | ||
* Run `make generate` to generate json bench data (only once) | ||
* Run `make bench` to run elasticsearch mock service | ||
* Switch to other terminal tab and run `make bench-file-d|bench-vector|bench-filebeat` (one of tool) | ||
* Look at output of elasticsearch mock service | ||
|
||
2.6 GHz 6‑Core Intel Core i7 results: | ||
* File.d — 251.48Mb/s | ||
* Vector — 21.50Mb/s | ||
* Filebeat — 64.75Mb/s | ||
AMD Ryzen 9 5950x (4.9 GHz 16‑Core) and SSD M2 Samsung 980 PRO (read 7000 MB/s, write 5000 MB/s) results: | ||
|
||
* File.d — 500.48Mb/s | ||
* Vector — 323.14Mb/s | ||
* Filebeat — 75.42Mb/s |
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 was deleted.
Oops, something went wrong.
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
Binary file not shown.
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
Binary file not shown.
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
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type = "json_parse"
removes in vector v0.12