Atte;<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I&#39;ll check the difference. But it seems to me that for this purpose (&quot;which of A and B is more expensive&quot;) it doesn&#39;t matter since we&#39;re interested in the relative speed of code.<div class="im">
</div></blockquote><div><br><br>I think getting as close as possible to the actual cost of a single UGen would be useful. We may have several ways of constructing a certain sound out of a few UGens, in that case the relative cost of single UGens would be quite relevant. I recognise that we may not be able to find the exact cost in all cases as it may depend on the context, especially if/when we would start optimising ChucK but it could still be interesting to get as close as possible.<br>
<br>Even the question of whether or not such a difference really exists in a appreciable form would be interesting; such info would help us make more informed choices about the the structure of our programs.<br><br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Agreed, and I have lot&#39;s of other ideas + plan on testing things as they occur in my work.<div class="im">
</div></blockquote><div><br>Great! I&#39;m looking forward to reading about this.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You&#39;re absolutely right. I actually started something automatic, but got stuck, and thought a &quot;by-hand&quot; start was better than nothing. I&#39;ll for sure see if I can make a 100% automatic test.<br>
</blockquote><div><br>Oh, yes, clearly, this is already quite interesting.<br><br>Eric had a interesting note about different kernels; I wonder whether that would make a difference beyond the relative cost of UGens compared to eachother (as percentages) and the overhead cost any given OS has for running a program at all. I could imagine different CPU&#39;s making a difference, provided we have a good compiler  and compile each on it&#39;s own system. We could create a standard for testing this; for example saying the cost of a single SinOsc is &quot;1&quot;, always using the same buffer size and so on.<br>
</div></div><br>Yours,<br>Kas.<br>