diff --git a/.github/workflows/bench-go.yml b/.github/workflows/bench-go.yml new file mode 100644 index 00000000..61aef575 --- /dev/null +++ b/.github/workflows/bench-go.yml @@ -0,0 +1,54 @@ +name: bench go + +on: + push: + paths-ignore: + - 'docs/**' + - 'README.md' + branches: + - main + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + branches: + - main + +permissions: + contents: read + +jobs: + dev: + strategy: + matrix: + os-version: ['ubuntu-22.04' ] + go-version: [ '1.20', '1.21' ] + runs-on: ${{ matrix.os-version }} + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + + - name: Show Go version + run: | + go version + sudo go version + + - name: Set up Go for root + if: runner.os != 'macOS' + run: | + which go + sudo which go + sudo ln -sf `which go` `sudo which go` || true + + - name: Show Go version + run: | + go version + sudo go version + + - name: Bench + run: | + cd dnsutils/ + go test -run=^$ -bench=. \ No newline at end of file diff --git a/README.md b/README.md index abbf3e11..127f2dc0 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Go Report Go version Go tests +Go bench Go lines

@@ -63,8 +64,8 @@ - [`Loki`](docs/loggers/logger_loki.md) - [`ElasticSearch`](docs/loggers/logger_elasticsearch.md) - [`Scalyr`](docs/loggers/logger_scalyr.md) - - [`Redis`](docs/loggers/logger_redis.md) - - [`Kafka`](docs/loggers/logger_kafka.md) + - [`Redis`](docs/loggers/logger_redis.md) publisher + - [`Kafka`](docs/loggers/logger_kafka.md) producer - *Send to security tools* - [`Falco`](docs/loggers/logger_falco.md) @@ -111,6 +112,7 @@ The [`_examples`](./docs/_examples) folder from documentation contains a number The [`_integration`](./docs/_integration) folder contains DNS-collector `configuration` files and `docker compose` examples for popular tools: - [Elasticsearch](./docs/_integration/elasticsearch/README.md) +- [Kafka](./docs/_integration/kafka/README.md) ## Performance