0
0
forked from blender/blender
blender/tests/performance
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
..
api Benchmark: Pack python expression into a single line 2023-06-15 13:40:17 +02:00
tests Tests: run geometry nodes benchmarks multiple times to reduce noise 2023-01-06 13:04:49 +01:00
benchmark.py Rename benchmark to benchmark.py 2023-06-14 12:41:24 +02:00