mirror of
https://github.com/overte-org/overte.git
synced 2025-04-30 00:23:06 +02:00
36 lines
845 B
C++
36 lines
845 B
C++
//
|
|
// SciptEngineBenchmarks.h
|
|
// tests/script-engine/src
|
|
//
|
|
// Created by Dale Glass
|
|
// Copyright 2023 Overte e.V.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <QtTest/QtTest>
|
|
#include "ScriptManager.h"
|
|
#include "ScriptEngine.h"
|
|
|
|
|
|
using ScriptManagerPointer = std::shared_ptr<ScriptManager>;
|
|
|
|
|
|
class ScriptEngineBenchmarkTests : public QObject {
|
|
Q_OBJECT
|
|
private slots:
|
|
void initTestCase();
|
|
void benchmarkSetProperty();
|
|
void benchmarkSetProperty1K();
|
|
void benchmarkSetProperty16K();
|
|
void benchmarkQueryProperty();
|
|
void benchmarkSimpleScript();
|
|
|
|
private:
|
|
ScriptManagerPointer makeManager(const QString &source, const QString &filename);
|
|
};
|
|
|