Add performance test case

This requires the user to manually copy the large test file into the
dives directory (because I really don't want to add this to the repo);
instructions how to do that are displayed if the file is missing.

Next it uses the git version of that same file (but prefetches it to
try and remove the network speed from what is being measured).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-08-30 14:01:03 -07:00
parent 59a68fe9b5
commit 78cd2f4e09
3 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,18 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef TESTPARSEPERFORMANCE_H
#define TESTPARSEPERFORMANCE_H
#include <QtTest>
class TestParsePerformance : public QObject {
Q_OBJECT
private slots:
void initTestCase();
void init();
void cleanup();
void parseSsrf();
void parseGit();
};
#endif