mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 02:36:18 +08:00
Publish benchmarks on the Actions tab (#117)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: test
|
||||
name: linux-clang
|
||||
|
||||
on: [ push, pull_request ]
|
||||
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
clang --version
|
||||
cmake -S . -B build -DREFLECTCPP_BUILD_TESTS=ON -DREFLECTCPP_BUILD_BENCHMARKS=ON -DREFLECTCPP_BSON=ON -DREFLECTCPP_CBOR=ON -DREFLECTCPP_FLEXBUFFERS=ON -DREFLECTCPP_MSGPACK=ON -DREFLECTCPP_TOML=ON -DREFLECTCPP_XML=ON -DREFLECTCPP_YAML=ON -DCMAKE_BUILD_TYPE=Release
|
||||
cmake --build build -j 4
|
||||
- name: Run tests
|
||||
- name: Run tess
|
||||
run: |
|
||||
./build/tests/bson/reflect-cpp-bson-tests
|
||||
./build/tests/cbor/reflect-cpp-cbor-tests
|
||||
@@ -41,11 +41,19 @@ jobs:
|
||||
./build/tests/yaml/reflect-cpp-yaml-tests
|
||||
- name: Run benchmarks
|
||||
run: |
|
||||
./build/benchmarks/json/reflect-cpp-json-benchmarks --benchmark_filter=canada
|
||||
./build/benchmarks/json/reflect-cpp-json-benchmarks --benchmark_filter=person_read
|
||||
./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=canada_read
|
||||
./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=canada_write
|
||||
./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=licenses_read
|
||||
./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=licenses_write
|
||||
./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=person_read
|
||||
./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=person_write
|
||||
echo '# Benchmarks' >> $GITHUB_STEP_SUMMARY
|
||||
echo '## Benchmarks across different formats' >> $GITHUB_STEP_SUMMARY
|
||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||
./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=canada_read >> $GITHUB_STEP_SUMMARY
|
||||
./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=canada_write >> $GITHUB_STEP_SUMMARY
|
||||
./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=licenses_read >> $GITHUB_STEP_SUMMARY
|
||||
./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=licenses_write >> $GITHUB_STEP_SUMMARY
|
||||
./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=person_read >> $GITHUB_STEP_SUMMARY
|
||||
./build/benchmarks/all/reflect-cpp-all-format-benchmarks --benchmark_filter=person_write >> $GITHUB_STEP_SUMMARY
|
||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||
echo '## Benchmarks for JSON' >> $GITHUB_STEP_SUMMARY
|
||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||
./build/benchmarks/json/reflect-cpp-json-benchmarks --benchmark_filter=person_read >> $GITHUB_STEP_SUMMARY
|
||||
./build/benchmarks/json/reflect-cpp-json-benchmarks --benchmark_filter=canada >> $GITHUB_STEP_SUMMARY
|
||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
|
||||
Reference in New Issue
Block a user