mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
d0f817a60b
* 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>
19 lines
328 B
C++
19 lines
328 B
C++
#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();
|
|
}
|