bdk-blender/tests/performance/api
Sergey Sharybin 2d3c9bcee8 Benchmark: Pack python expression into a single line
There should be no functional changes for the typical usecase,
but it allows to have more tricky setups like pointing to a
BAT script to override some configuration.

The issue is that BAT scripts do not support new lines in the
command line arguments. That's where single-line python expression
helps.

For example, it is possible to point benchmark script to a blender.bat
which contains

    blender.exe --python-expr "import bpy; bpy.context.preferences.addons['cycles'].preferences.use_oneapirt = False" %*

to have side-by-side numbers of oneAPI with and without HW RT.

Without this change the %* is which did not work: the BAT
script did not "see" part of the command line past the new line.

Pull Request: blender/blender#109006
2023-06-15 13:40:17 +02:00
..
__init__.py File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
config.py Update references to the new projects platform and main branch 2023-02-07 14:18:19 +01:00
device.py Tests: Fix device list of benchmark script only showing a single GPU 2023-02-10 19:38:37 +01:00
environment.py Benchmark: Pack python expression into a single line 2023-06-15 13:40:17 +02:00
graph.py Cleanup: fix various typos 2022-08-03 19:28:05 +02:00
graph.template.html Tests: show more precise numbers in benchmark charts 2022-01-14 15:17:22 +01:00
test.py Cleanup: run autopep8 on tests/ 2022-04-19 15:25:55 +10:00