Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Inline::C on Windows: how to improve performance of compiled code?

by syphilis (Archbishop)
on Jun 16, 2018 at 05:43 UTC ( [id://1216771]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -MTime::HiRes=time -MInline=C,"void foo(){}" -wE"$t=time;foo()fo
    +r 1..1e8;say time-$t"
    11.0136189460754
    
    >perl -MTime::HiRes=time -wE"$t=time;sub foo(){}foo()for 1..1e8;say ti
    +me-$t"
    5.39761018753052
    
  2. or download this
    >perl -MTime::HiRes=time -MInline=C,"void foo(){}" -wE"$t=time;foo()fo
    +r 1..1e8;say time-$t"
    10.4052181243896
    
    >perl -MTime::HiRes=time -wE"$t=time;sub foo(){}foo()for 1..1e8;say ti
    +me-$t"
    5.58481001853943
    
  3. or download this
    >perl -MTime::HiRes=time -MInline=C,"void foo(){}" -wE"$t=time;foo()fo
    +r 1..1e8;say time-$t"
    4.92960906028748
    
    >perl -MTime::HiRes=time -wE"$t=time;sub foo(){}foo()for 1..1e8;say ti
    +me-$t"
    7.65961289405823
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1216771]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-26 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found