https://github.com/pin3da/microbench-cpp
Microbenchmark example in C++
https://github.com/pin3da/microbench-cpp
Last synced: 9 months ago
JSON representation
Microbenchmark example in C++
- Host: GitHub
- URL: https://github.com/pin3da/microbench-cpp
- Owner: pin3da
- License: mpl-2.0
- Created: 2024-04-06T10:29:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T14:52:40.000Z (over 2 years ago)
- Last Synced: 2024-04-14T04:52:59.583Z (over 2 years ago)
- Language: C++
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# microbench-cpp
Microbenchmark example in C++
### Dependencies
Requires https://bazel.build/ to be installed.
### Build
`bazel build //main:main -c opt`
### Run
`bazel run //main:main -c opt `
This will generate an output like the following:
```
------------------------------------------------------------
Benchmark Time CPU Iterations
------------------------------------------------------------
BM_StringConcatV1 519933 ns 518423 ns 1000
BM_StringConcatV2 1717999 ns 1703354 ns 413
```
-----
https://github.com/pin3da https://gitlab.com/pin3da