Page MenuHome

Tests: Automated geometry nodes benchmark
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Nov 24 2022, 3:34 PM.

Details

Summary

Add a script for a very simple object evaluation benchmark.
There could be more advanced ways of measuring the time
per-node or per modifier, but this just loads the file, tags
the active object for a reevaluation, and times how long
that takes.

Eventually it would be nice to have something like this
connected to Open Data, but that can be separate,
maybe just with the same collection of files.

A test with some files I had locally

Diff Detail

Repository
rB Blender

Event Timeline

Brecht Van Lommel (brecht) requested changes to this revision.Nov 24 2022, 3:43 PM

I suggest tagging all objects with a geometry nodes modifier for update.

Relying on there just being one relevant object and the user making that object active on file save is a bit fragile.

This revision now requires changes to proceed.Nov 24 2022, 3:43 PM

Also suggest to call bpy.context.view_layer.update() first, then tag, then call it again.

I'm not sure if there is any lazy evaluation that would affect this now, but I would not rely on it.

Good points, I made those changes here.

This revision is now accepted and ready to land.Nov 25 2022, 7:37 PM