Add basic benchmark (#3038)

* Add basic benchmark

* Add basic documentation for how to run and add tests/benchmarks

* Update benchmark example output

* Add changelog entry

Co-authored-by: zneix <zneix@zneix.eu>
This commit is contained in:
pajlada
2021-08-08 14:16:30 +02:00
committed by GitHub
parent 7309fd8668
commit d0f817a60b
8 changed files with 239 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
#include <benchmark/benchmark.h>
#include <QApplication>
#include <QtConcurrent>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
::benchmark::Initialize(&argc, argv);
QtConcurrent::run([&app] {
::benchmark::RunSpecifiedBenchmarks();
app.exit(0);
});
return app.exec();
}