L
Lost User
Guest
Testing the performance of a new logger... pretty amasing!
well not screenshots.. but it will work:
[code:1]
World: Saving...done in 0,2 seconds.
Logging 1 lines of string
"Hi everybody, this is test and I am logging 1 line!!! "
Logging took 0 seconds!
Logging 1000 lines of string
"I don't wanna make you wait, so look at what babe is capable of! "
Logging took 0 seconds!
Logging 1000 lines of string
"I don't wanna make you wait, so look at what babe is capable of! "
Logging took 0 seconds!
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,4 seconds.
Logging 10000 lines of string
"Like that don't you? Let's go to 10 thousand "
Logging took 0,03125 seconds!
Logging 10000 lines of string
"Like that don't you? Let's go to 10 thousand AGAIN! "
Logging took 0,109375 seconds!
Logging 10000 lines of string
"Like that don't you? Let's go to 10 thousand AGAIN! "
Logging took 0,078125 seconds!
Logging 100000 lines of string
"ehh whatever lez make it 100 thousand "
Logging took 1,046875 seconds!
Logging 100000 lines of string
"ehh whatever lez make it 100 thousand and again :L) "
Logging took 1,125 seconds!
Logging 1000000 lines of string
"Now watch 1 million "
Logging took 7,8125 seconds!
World: Saving...done in 0,4 seconds.
World: Saving...done in 0,2 seconds.
Logging 1000000 lines of string
"Now watch 1 million AGAIn ( worldsave (( ) "
Logging took 5,140625 seconds!
Logging 10000000 lines of string
"This babe is cute ain't it? Lez go to 10 million "
Logging took 93,78125 seconds!
World: Saving...done in 0,5 seconds.
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,1 seconds.
World: Saving...done in 0,2 seconds.
Logging 1000 lines of string
"Wow that hurt Well can u beat this record? "
Logging took 0 seconds!
Logging 1000 lines of string
"Wow that hurt Well can u beat this record? "
Logging took 0,015625 seconds!
Logging 1000 lines of string
"Wow that hurt Well can u beat this record? "
Logging took 0 seconds!
Logging 1000 lines of string
"Wow that hurt Well can u beat this record? BIG LINES GO ))) "
Logging took 0 seconds!
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,3 seconds.
Logging 2000 lines of string
"Thank you for watching, you will soon have it. Richard - [email protected] "
Logging took 0,015625 seconds!
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,2 seconds.
[/code:1]
... Pretty nice aint't it? But it's not finished yet - I will release max in a week . But the point is - right now even if you have 500 players online all the time, and you log everything they say, and all your scripts, it should not affect your computer's performance in almost any way ( maybe 0.00001%).... That's how powerful it is Besides - I was running that on my comp which is 1.6 Ghz P4, 700 MB RAM, and I also had 5 browsers running, runuo script editor, runuo, client, a whole bunch of soft including MP3, Kaaz, and a lot more...
Here are the lines of code I were executing:
[code:1] private static void l_OnCommand( CommandEventArgs e )
{
string str = "";
for ( int i = 1; i < e.Length; i++ ) str += e.GetString(i) + " ";
Console.WriteLine("Logging " + e.GetInt32(0) + " lines of string\n\"" + str + "\""
long sec = System.DateTime.Now.ToFileTime();
for ( int z = 0; z < e.GetInt32(0); z++ )
log.LogLine(str);
sec = System.DateTime.Now.ToFileTime() - sec;
Console.WriteLine( "Logging took " +(double) sec/10000000 + " seconds!" );
}[/code:1]
well not screenshots.. but it will work:
[code:1]
World: Saving...done in 0,2 seconds.
Logging 1 lines of string
"Hi everybody, this is test and I am logging 1 line!!! "
Logging took 0 seconds!
Logging 1000 lines of string
"I don't wanna make you wait, so look at what babe is capable of! "
Logging took 0 seconds!
Logging 1000 lines of string
"I don't wanna make you wait, so look at what babe is capable of! "
Logging took 0 seconds!
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,4 seconds.
Logging 10000 lines of string
"Like that don't you? Let's go to 10 thousand "
Logging took 0,03125 seconds!
Logging 10000 lines of string
"Like that don't you? Let's go to 10 thousand AGAIN! "
Logging took 0,109375 seconds!
Logging 10000 lines of string
"Like that don't you? Let's go to 10 thousand AGAIN! "
Logging took 0,078125 seconds!
Logging 100000 lines of string
"ehh whatever lez make it 100 thousand "
Logging took 1,046875 seconds!
Logging 100000 lines of string
"ehh whatever lez make it 100 thousand and again :L) "
Logging took 1,125 seconds!
Logging 1000000 lines of string
"Now watch 1 million "
Logging took 7,8125 seconds!
World: Saving...done in 0,4 seconds.
World: Saving...done in 0,2 seconds.
Logging 1000000 lines of string
"Now watch 1 million AGAIn ( worldsave (( ) "
Logging took 5,140625 seconds!
Logging 10000000 lines of string
"This babe is cute ain't it? Lez go to 10 million "
Logging took 93,78125 seconds!
World: Saving...done in 0,5 seconds.
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,1 seconds.
World: Saving...done in 0,2 seconds.
Logging 1000 lines of string
"Wow that hurt Well can u beat this record? "
Logging took 0 seconds!
Logging 1000 lines of string
"Wow that hurt Well can u beat this record? "
Logging took 0,015625 seconds!
Logging 1000 lines of string
"Wow that hurt Well can u beat this record? "
Logging took 0 seconds!
Logging 1000 lines of string
"Wow that hurt Well can u beat this record? BIG LINES GO ))) "
Logging took 0 seconds!
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,3 seconds.
Logging 2000 lines of string
"Thank you for watching, you will soon have it. Richard - [email protected] "
Logging took 0,015625 seconds!
World: Saving...done in 0,2 seconds.
World: Saving...done in 0,2 seconds.
[/code:1]
... Pretty nice aint't it? But it's not finished yet - I will release max in a week . But the point is - right now even if you have 500 players online all the time, and you log everything they say, and all your scripts, it should not affect your computer's performance in almost any way ( maybe 0.00001%).... That's how powerful it is Besides - I was running that on my comp which is 1.6 Ghz P4, 700 MB RAM, and I also had 5 browsers running, runuo script editor, runuo, client, a whole bunch of soft including MP3, Kaaz, and a lot more...
Here are the lines of code I were executing:
[code:1] private static void l_OnCommand( CommandEventArgs e )
{
string str = "";
for ( int i = 1; i < e.Length; i++ ) str += e.GetString(i) + " ";
Console.WriteLine("Logging " + e.GetInt32(0) + " lines of string\n\"" + str + "\""
long sec = System.DateTime.Now.ToFileTime();
for ( int z = 0; z < e.GetInt32(0); z++ )
log.LogLine(str);
sec = System.DateTime.Now.ToFileTime() - sec;
Console.WriteLine( "Logging took " +(double) sec/10000000 + " seconds!" );
}[/code:1]