Skip to content

[CLEANUP]: Update clickhouse libs & actualise benchmarks (#443) #713

[CLEANUP]: Update clickhouse libs & actualise benchmarks (#443)

[CLEANUP]: Update clickhouse libs & actualise benchmarks (#443) #713

Workflow file for this run

name: benchmark
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 8
- run: sed -i 's/TRACE/INFO/g' clickhouse-native-jdbc/src/test/resources/simplelogger.properties
- run: sed -i 's/DEBUG/INFO/g' clickhouse-native-jdbc/src/test/resources/simplelogger.properties
- name: Install libasyncProfiler (remove this once async-profiler available on maven-central)
run: |
wget -O /tmp/async-profiler-1.8.3-linux-x64.tar.gz \
https://github.com/jvm-profiling-tools/async-profiler/releases/download/v1.8.3/async-profiler-1.8.3-linux-x64.tar.gz
tar -C /tmp -xzf /tmp/async-profiler-1.8.3-linux-x64.tar.gz
- name: Run benchmarks
env:
NETTY_RESOURCE_LEAK_DETECT_LEVEL: DISABLED
run: |
mvn -B -Pbenchmark clean integration-test -DskipITs -pl :clickhouse-native-jdbc -am | tee output.log
echo "BENCHMARK_REPORT<<EOF" >> $GITHUB_ENV
echo "`cat output.log | grep -E '^Benchmark\s.*\sUnits$' -A 300 | grep -E '.*\s(Units|ms/op)$'`" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- run: tar -czf benchmark-reports.tgz -C clickhouse-native-jdbc reports
- name: Upload reports
uses: actions/upload-artifact@v2
with:
name: benchmark-reports
path: benchmark-reports.tgz
retention-days: 30
- name: PR Comment
uses: github-actions-up-and-running/[email protected]
if: ${{ github.event_name == 'pull_request' }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
message: |
<details>
<summary>BENCHMARK_REPORT</summary>
```
${{ env.BENCHMARK_REPORT }}
```
</details>