From dc3f46d96b780260d982954578cac3bff74efd83 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 15 Mar 2020 00:30:26 +0100 Subject: Tests: performance testing framework These are scripts for benchmarking Blender features on real-world .blend files. They were originally written for benchmarking Cycles performance, and were made generic so they can be used for more Blender features. The benchmarks can be run locally by developers. But the plan is to also run these as part of continuous integration to track performance over time. Currently there are tests for Cycles rendering and .blend file loading. Documentation: https://wiki.blender.org/wiki/Tools/Tests/Performance Main features: * User created configurations to quickly run, re-run and analyze a selected subset of tests. * Supports both benchmarking with existing builds, and automatic building of specified git commits, tags and branches. * Generate HTML page with bar and line graphs from test results. * Controlled using simple command line tool. * For writing tests, convenient abstraction to run a Python function in Blender with arguments and return value. Ref T74730 Differential Revision: https://developer.blender.org/D11662 --- tests/performance/api/graph.template.html | 86 +++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 tests/performance/api/graph.template.html (limited to 'tests/performance/api/graph.template.html') diff --git a/tests/performance/api/graph.template.html b/tests/performance/api/graph.template.html new file mode 100644 index 00000000000..8929c2bdd1b --- /dev/null +++ b/tests/performance/api/graph.template.html @@ -0,0 +1,86 @@ + + + Benchmarks + + + + + + +

Benchmarks

+
+ ... +
+ + -- cgit v1.2.3 From 37a5ff4a8470a0040f88228bbf3d439c42389446 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 14 Jul 2021 14:03:04 +0200 Subject: Tests: support graphing peak memory in Cycles performance tests The general graphing mechanism will create one graph for each output variable. So it's not limited to time and memory, but that is what the Cycles tests now output. --- tests/performance/api/graph.template.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/performance/api/graph.template.html') diff --git a/tests/performance/api/graph.template.html b/tests/performance/api/graph.template.html index 8929c2bdd1b..147f1628c23 100644 --- a/tests/performance/api/graph.template.html +++ b/tests/performance/api/graph.template.html @@ -52,7 +52,7 @@ /* Chart drawing options. */ var options = { - chart: {title: device["category"], subtitle: device['device']}, + chart: {title: device["name"], subtitle: device['device']}, pointsVisible: true, pointSize: 2.5, height: 500, -- cgit v1.2.3