-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca9f962
commit e2f9331
Showing
11 changed files
with
71 additions
and
93 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
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.