Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 ( #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? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2022-08-10 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?