mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-02 06:38:18 +00:00
Add benchmarks to Linux CI (#6928)
This commit is contained in:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -116,6 +116,24 @@ jobs:
|
|||||||
- name: Generate
|
- name: Generate
|
||||||
run: bash scripts/check-generate-code.sh && bash scripts/check-grpc-generated-code.sh
|
run: bash scripts/check-generate-code.sh && bash scripts/check-grpc-generated-code.sh
|
||||||
|
|
||||||
|
build-benchmarks:
|
||||||
|
name: Build Benchmarks (on Linux)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
cxx: [g++-10]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: cmake
|
||||||
|
run: CXX=${{ matrix.cxx }} cmake -G "Unix Makefiles" -DFLATBUFFERS_CXX_FLAGS="-Wno-unused-parameter -fno-aligned-new" -DFLATBUFFERS_BUILD_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=Release . && make -j4
|
||||||
|
- name: Run benchmarks
|
||||||
|
run: ./flatbenchmark --benchmark_repetitions=5 --benchmark_display_aggregates_only=true --benchmark_out_format=console --benchmark_out=benchmarks/results_${{matrix.cxx}}
|
||||||
|
- name: Upload benchmarks results
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: Linux flatbenchmark results ${{matrix.cxx}}
|
||||||
|
path: benchmarks/results_${{matrix.cxx}}
|
||||||
|
|
||||||
build-java:
|
build-java:
|
||||||
name: Build Java
|
name: Build Java
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user