Commit graph

15 commits

Author SHA1 Message Date
Jeroen Bakker
4d62c95226 Refactor: Benchmark: Use keys to access data
Depend on the data available the graph could contain
a different structure. This refactor will use one structure
and use `x/yAxisKey` to select the data that will be shown.

This will increase the flexibility when adding features as data can be
calculated/stored along side the original data.

Pull Request: https://projects.blender.org/blender/blender/pulls/157120
2026-04-09 17:51:37 +02:00
Jeroen Bakker
d3d248026e Benchmark: Run multiple times and report avg/min/max
Adds an option to run multiple benchmark runs and graph error bars.

`./benchmark.py run --count 3`
`./benchmark.py update --count 3`

Error bars will only be drawn when data is available containing multiple
runs.

Pull Request: https://projects.blender.org/blender/blender/pulls/156638
2026-04-09 11:38:34 +02:00
Jeroen Bakker
b0e2dbcc6a Benchmark: Add device name to EEVEE tests
Adding the actual GPU device name and host CPU to the test results.
For Cycles the CPU isn't that important when using GPUs as it would
mostly perform the scheduling, however when running EEVEE tests the
CPU is more involved.

This PR will extract the correct GPU device names and adds the CPU name
to a separate identifier. The used CPU is then added to the report, when
found in the results and different than the test device.

Pull Request: https://projects.blender.org/blender/blender/pulls/155419
2026-03-10 13:04:02 +01:00
Brecht Van Lommel
78efebec1e Tests: Add click in legend to isolate test in benchmark charts
Pull Request: https://projects.blender.org/blender/blender/pulls/152794
2026-01-14 17:57:45 +01:00
Brecht Van Lommel
4dd1c4d736 Tests: Add log scale and linear with outlier clipping to benchmark charts
Log scale helps visualize results with very different runtime or memory
usage in a single chart. However big performance changes do not stand
out as much and may be missed.

Linear with outliner clipping keeps the linear display but clips the Y
axis by detecting outliers. This solves the chart being compressed too
much with extreme outliers, but may also hide some lines entirely.

Pull Request: https://projects.blender.org/blender/blender/pulls/152794
2026-01-14 17:57:45 +01:00
Brecht Van Lommel
befac37188 Tests: Add time range filter for benchmark charts
Choice is between 1 month, 4 months, 12 months and all time. The default
is 4 months like the release cycle.

The long time range makes the charts harder to read and slower to
display, this helps with both. It also means that results from older
machines are now hidden by default instead of having multiple charts.

Pull Request: https://projects.blender.org/blender/blender/pulls/152794
2026-01-14 17:57:45 +01:00
Brecht Van Lommel
d9d0a994e6 Tests: Switch benchmark charts from Google Charts to Chart.js
This solves performance issues with big charts on browsers like Firefox,
has some features that we want to use (log scale), and generally seems
more modern and well maintained.

Pull Request: https://projects.blender.org/blender/blender/pulls/152794
2026-01-14 17:57:44 +01:00
Campbell Barton
705c868bb9 Cleanup: trailing space 2025-09-23 09:37:03 +10:00
Namit Bhutani
8536fd1223 Sculpt: Compress position undo step data
Stored undo step data for position changes in sculpt mode are now
automatically compressed. Compression is run in background threads,
reducing memory consumption during sculpting sessions while adding
little performance overhead.

For testing and benchmarks, memory usage is now available through
`bpy.app.undo_memory_info()`. Undo memory usage is now tracked by the
existing automated benchmark tests. Some changes to the web benchmark
visualization present the data a bit better.

ZSTD compression is run asynchronously in a backround task pool.
Compression is only blocking if the data is requested immediately for
undo/redo.

Co-authored-by: Hans Goudey <hans@blender.org>

Pull Request: https://projects.blender.org/blender/blender/pulls/141310
2025-09-03 19:15:05 +02:00
Brecht Van Lommel
9135929063 Tests: Add back missing memory / time title in benchmark html
Pull Request: https://projects.blender.org/blender/blender/pulls/133763
2025-01-29 13:55:29 +01:00
Iliya Katueshenock
f16127a356 Tests: Add scroll to view long benchmark graph legend
Pull Request: https://projects.blender.org/blender/blender/pulls/128339
2025-01-26 08:54:44 +01:00
Brecht Van Lommel
04298a0c48 Tests: Use tabs in benchmark charts
For easier overview, and to make this heavy page a bit easier to browse.

Pull Request: https://projects.blender.org/blender/blender/pulls/133385
2025-01-21 18:01:42 +01:00
Brecht Van Lommel
8ae6995e98 Tests: show more precise numbers in benchmark charts 2022-01-14 15:17:22 +01:00
Brecht Van Lommel
37a5ff4a84 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.
2021-07-14 16:12:10 +02:00
Brecht Van Lommel
dc3f46d96b 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
2021-07-05 12:32:32 +02:00