[PD] Re: pure == slow, impure == fast ? was purepd

Frank Barknecht fbar at footils.org
Sun Nov 20 10:32:51 CET 2005


Hallo,
Frank Barknecht hat gesagt: // Frank Barknecht wrote:

> For example, when patching the [list]-abs I found, that I am using the
> serialize operation [list-drip] *a lot*. I now did a benchmark and
> saw, that serializing as done in the help patch is slower by a large
> deal than the equivalent operation in Zexy. (Benchmark patches
> attached). 

Attached is a slightly enhanced benchmark, which now gives hard
numbers about the [cputime] spent.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
-------------- next part --------------
#N canvas 324 197 736 482 10;
#N canvas 0 0 450 300 bm 0;
#X restore 144 424 pd bm;
#X obj 26 382 s pd-bm;
#X msg 146 320 clear;
#X obj 26 270 until;
#X obj 26 201 t b b;
#X floatatom 130 118 5 0 0 2 howmany - -;
#X obj 26 245 f;
#X obj 236 151 bng 32 250 50 0 empty empty test-zexy-drip 0 -6 0 8
-258699 -1 -1;
#X obj 26 147 bng 32 250 50 0 empty empty test-list-drip 0 -6 0 8 -24198
-1 -1;
#X obj 26 295 f 10;
#X obj 59 294 + 20;
#X msg 70 270 10;
#X obj 236 378 s pd-bm;
#X msg 356 316 clear;
#X obj 236 266 until;
#X obj 236 197 t b b;
#X obj 236 241 f;
#X obj 236 291 f 10;
#X obj 269 290 + 20;
#X msg 280 266 10;
#X msg 26 319 obj 10 \$1 ldrip;
#X obj 510 150 random 100;
#X obj 509 123 until;
#X obj 510 183 list;
#X obj 549 183 t a;
#X obj 487 217 list;
#X obj 487 244 s THE_LIST;
#X msg 517 67 1000;
#X obj 512 99 t f b;
#X obj 435 150 bng 24 250 50 0 empty empty run_test 0 -6 0 8 -225271
-1 -1;
#X msg 236 315 obj 10 \$1 zdrip;
#X text 497 45 Make test list;
#X text 24 22 first make test list \, then select \, how many objects
to create \, then create them in [pd bm] by pressing the colorful bngs.
After that \, send the test list and watch the time it takes for the
bang \, too get black again.;
#X floatatom 435 297 8 0 0 1 milliseconds - -;
#X obj 435 182 t b b b;
#X obj 435 243 t b b;
#X obj 435 274 cputime;
#X connect 2 0 1 0;
#X connect 3 0 9 0;
#X connect 4 0 6 0;
#X connect 4 1 2 0;
#X connect 4 1 11 0;
#X connect 5 0 6 1;
#X connect 5 0 16 1;
#X connect 6 0 3 0;
#X connect 7 0 15 0;
#X connect 8 0 4 0;
#X connect 9 0 10 0;
#X connect 9 0 20 0;
#X connect 10 0 9 1;
#X connect 11 0 9 1;
#X connect 13 0 12 0;
#X connect 14 0 17 0;
#X connect 15 0 16 0;
#X connect 15 1 13 0;
#X connect 15 1 19 0;
#X connect 16 0 14 0;
#X connect 17 0 18 0;
#X connect 17 0 30 0;
#X connect 18 0 17 1;
#X connect 19 0 17 1;
#X connect 20 0 1 0;
#X connect 21 0 23 0;
#X connect 22 0 21 0;
#X connect 23 0 24 0;
#X connect 23 0 25 1;
#X connect 24 0 23 1;
#X connect 25 0 26 0;
#X connect 27 0 28 0;
#X connect 28 0 22 0;
#X connect 28 1 23 1;
#X connect 29 0 34 0;
#X connect 30 0 12 0;
#X connect 34 0 35 0;
#X connect 34 1 25 0;
#X connect 34 2 35 0;
#X connect 35 0 36 0;
#X connect 35 1 36 1;
#X connect 36 0 33 0;


More information about the Pd-list mailing list