Csound Csound-dev Csound-tekno Search About

[Cs-dev] oscili or poscil

Date2012-01-21 18:49
Fromjohn ffitch
Subject[Cs-dev] oscili or poscil
Victor says
> In fact floating-point maths is faster than integer maths in my computer:
> 1000s of oscili  -> Elapsed time at end of performance: real: 0.912s, CPU: 0.910s
> 1000s of poscil -> Elapsed time at end of performance: real: 0.759s, CPU: 0.757s

I am skeptical after i ran some experiments.  I agree with oscili
being slower that poscil IN ONE CASE.  I have a mixture of computers
here, so tried a couple, both latest git system compiled as doubles,
linux.   The 64bit is a dualcore 1.8Gz, 32bit older 1.4GHz single core

               64bit            32bit
oscili         2.74             3.73
poscil         2.53             5.67
oscil3         3.18             4.71
posil3         3.56             6.85

So p family wins 1 out of 4

==John ffitch

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-01-21 19:10
FromVictor Lazzarini
SubjectRe: [Cs-dev] oscili or poscil
Well on OSX it wins 3 out of 4.
                   64bit         32bit
oscili            0.859             1.157
poscil          0.722               0.991
oscil3          1.210                1.451
poscil3        1.146               1.500

On 21 Jan 2012, at 18:49, john ffitch wrote:

> Victor says
>> In fact floating-point maths is faster than integer maths in my computer:
>> 1000s of oscili  -> Elapsed time at end of performance: real: 0.912s, CPU: 0.910s
>> 1000s of poscil -> Elapsed time at end of performance: real: 0.759s, CPU: 0.757s
> 
> I am skeptical after i ran some experiments.  I agree with oscili
> being slower that poscil IN ONE CASE.  I have a mixture of computers
> here, so tried a couple, both latest git system compiled as doubles,
> linux.   The 64bit is a dualcore 1.8Gz, 32bit older 1.4GHz single core
> 
>               64bit            32bit
> oscili         2.74             3.73
> poscil         2.53             5.67
> oscil3         3.18             4.71
> posil3         3.56             6.85
> 
> So p family wins 1 out of 4
> 
> ==John ffitch
> 
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-01-22 08:10
FromTito Latini
SubjectRe: [Cs-dev] oscili or poscil
AttachmentsNone  

Date2012-01-22 10:07
FromVictor Lazzarini
SubjectRe: [Cs-dev] oscili or poscil
what is the * _rep.csd?
On 22 Jan 2012, at 08:10, Tito Latini wrote:

> Here is my test
> 
> gnu/linux x86_64 2.6.33.7.2-rt30 AMD Phenom(tm) II X6
> 
> ls -1
> oscil3_.csd
> oscil3_rep.csd
> oscili_.csd
> oscili_rep.csd
> poscil3_.csd
> poscil3_rep.csd
> poscil_.csd
> poscil_rep.csd
> 
> where a csd file is
> 
> 
> 
> -d -n
> 
> 
> sr     = 44100
> ksmps  = 64
> nchnls = 1
> instr 1
> aout ?oscil? 10000, 440, 1
> out aout
> endin
> 
> 
> f1 0 65536 10 1
> i1 0 1000
> 
> 
> 
>          test-1       test-2 (_rep.csd)
> oscili    1.250        1.310
> poscil    1.430        1.440
> oscil3    2.480        2.470
> poscil3   2.750        2.750
> 
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-01-22 10:37
FromTito Latini
SubjectRe: [Cs-dev] oscili or poscil
AttachmentsNone