parent directory.. | ||||
View all files | ||||
This directory shows how to use github-action-benchmark with Google Benchmark Framework.
Official documentation for usage of Google Benchmark Framework:
https://github.com/google/benchmark
Build and install benchmark library and write up your benchmark suites following instructions in the above repository:
Build the source with C++ compiler:
And run built executable to output the result in JSON format:
Store the benchmark results with step using the action. Please set googlecpp to tool input.
Please read 'How to use' section for common usage.
To try this example, please use make and clang++.
bench subcommand prepares all dependencies, compiles bench.cpp and runs benchmarks. The results are output to console.
To get JSON output for running github-action-benchmark, please use another subcommand.
json subcommand outputs the benchmark results in JSON format and generates benchmark_result.json file in current directory.