GDL
About building parametric objects with GDL.
SOLVED!

GDL speed testing

s_p_b
Booster

I am working on a set of keynote labels / legends in GDL, which rely mainly on the text I/O add-on to bring in tables of keynotes written in excel. It's working well enough so far, but I haven't got a good sense of how costly the text I/O actually is. I'm wondering if there is a way within Archicad to benchmark the time it takes to run a GDL script?

In particular, I am interested in knowing how INPUT commands (using text I/O where files are loaded into the library) compare to LIBRARYGLOBAL commands in terms of speed. I've figured out a way to process all the keynote tables just once, in an MVO object, but the trade-off is that I then have to send a number of potentially large arrays to all the keynote objects.

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Jochen Suehlo
Moderator

I created a small performance checker which reads the time at start and after placing the 2D symbol. You can change the number of spheres and the resolution of the spheres, so you can wait over a minute if you choose high values.
https://download.b-prisma.de/objekte/Performance Check.gsm 

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

View solution in original post

2 REPLIES 2
Solution
Jochen Suehlo
Moderator

I created a small performance checker which reads the time at start and after placing the 2D symbol. You can change the number of spheres and the resolution of the spheres, so you can wait over a minute if you choose high values.
https://download.b-prisma.de/objekte/Performance Check.gsm 

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
s_p_b
Booster

I see, you're using the Datetime add-on - unfortunately it only reports to the nearest second, so we have to repeat an operation many times to get a sense of performance. I will make a few tests and post the results here!