Raised This Month: $ Target: $400
 0% 

Menu Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 07-12-2010 , 13:52   Re: Menu Problem
Reply With Quote #9

Quote:
Originally Posted by ConnorMcLeod View Post
PHP Code:
public plugin_init()
{
    
register_plugin("formatex vs num_to_str"VERSION"ConnorMcLeod")

    new 
iRandszNum[4]

    for(new 
ii<1000i++)
    {
        
iRand random(1000)
        
formatex(szNumcharsmax(szNum), "%d"iRand)
        
num_to_str(iRandszNumcharsmax(szNum))
    }
    
server_cmd("quit")

Code:
date: Mon Jul 12 13:12:00 2010 map: bkz_goldbhop
type |                             name |      calls | time / min / max
-------------------------------------------------------------------
   n |                  register_plugin |          1 | 0.000001 / 0.000001 / 0.000001
   n |                           random |       1000 | 0.000189 / 0.000000 / 0.000001
   n |                         formatex |       1000 | 0.000223 / 0.000000 / 0.000001
   n |                       num_to_str |       1000 | 0.000368 / 0.000000 / 0.000001
   n |                       server_cmd |          1 | 0.000003 / 0.000003 / 0.000003
   p |                      plugin_init |          1 | 0.000569 / 0.000569 / 0.000569
0 natives, 0 public callbacks, 1 function calls were not executed.
Let's stick with formatex




WOWLOL

I just thought that a specific native is better than a generic one, in that case i was wrong.
Thanks
Curious as to how you generated the table? All these years I always wondered how to do that. >_>
I created so many plugins but I have majorly relied on "optimizations" basically suggested alternatives to keep the server load down on things I ahve created. But never really looked into finding out how to do performance charts.
__________________


Last edited by mysticssjgoku4; 07-12-2010 at 14:34.
mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode