Omnimaga

Omnimaga => Discontinued => Our Projects => OmnomIRC Development => Topic started by: Netham45 on May 11, 2011, 03:40:40 am

Title: OmnomIRC Numbers!
Post by: Netham45 on May 11, 2011, 03:40:40 am
The current version requests the chat log every 4.5 seconds. That's 4300 bytes or 4.3KB every 5 seconds.

4.3 * 12 = 51.6kb/min
51.6 * 60 = 3,096kb(3MB)/hr

One of the userlist files that refreshes every 15 seconds is 700 bytes.

700*4=2800b(2.8kb)/min

2.8*60 = 168kb/hr

3096+168 = 3264kb/hr

The other userlist is about 800b every 15 seconds.

800*4=3200b/m
3.2*60 = 192kb/hr
3264kb/hr+192kb/hr = 3456 kb/hour, or 3.4MB in usage.

The new Omnom engine uses 2,067 bytes for the initial request(only ran once per tab), and uses at max 500 bytes about every 30 seconds afterwards(45 second timeout, guesstimating the messages averaged in bring that to 30).

500 * 2 = 1000b/m
1000*60 = 60,000b(6kb/h)/h
60,000+2067 = 62,067b/hour

62kb is 1/55th of 3456kb, meaning the new Omnom engline should use about 1/55th of the bandwidth on your end, or what lasted you about a minute and 6 seconds on the old OmnomIRC will now last you for an hour on the new one.
Title: Re: OmnomIRC Numbers!
Post by: Jim Bauwens on May 11, 2011, 04:08:11 am
Nice! Good work Netham :)
Title: Re: OmnomIRC Numbers!
Post by: DJ Omnimaga on May 12, 2011, 04:12:40 am
Wow nice! Good job optimizing it!
Title: Re: OmnomIRC Numbers!
Post by: Juju on May 12, 2011, 04:22:11 am
Wow nice! :D

Nice for the ones who have crappy computers/limited internets, in fact. :P
Title: Re: OmnomIRC Numbers!
Post by: ruler501 on May 12, 2011, 08:42:35 am
Great job Netham! Is this same functionality as the old one also?
Title: Re: OmnomIRC Numbers!
Post by: DJ Omnimaga on May 13, 2011, 03:58:15 pm
Not yet, some things are still inoperational, but hopefully it will be, soon.
Title: Re: OmnomIRC Numbers!
Post by: Netham45 on May 13, 2011, 06:13:25 pm
most everything that's missing is client-side parsing of the data it's already getting, though.
Title: Re: OmnomIRC Numbers!
Post by: ruler501 on May 13, 2011, 06:13:31 pm
Seems to be pretty good. Omnimaga looks like its loading correctly and same speed as other webpages.

SO did someone win the game?
I lost the game
Title: Re: OmnomIRC Numbers!
Post by: Deep Toaster on May 14, 2011, 11:16:06 am
Omnimaga has been loading really fast.... Now I know why. Awesome work Netham!
Title: Re: OmnomIRC Numbers!
Post by: ruler501 on May 14, 2011, 12:16:33 pm
I can tell that it is much faster. The only thing is that usually the rest of omni loads and it is still a white box with only the words omnomIRC in the topleft corner. Is it supposed to do this?
Title: Re: OmnomIRC Numbers!
Post by: Deep Toaster on May 14, 2011, 02:36:00 pm
I think so. I'm guessing it loads last so the rest of the page can load.
Title: Re: OmnomIRC Numbers!
Post by: DJ Omnimaga on May 14, 2011, 07:21:25 pm
I think this is when Netham45's server is overloaded. At least the entire site no longer waits until this loaded before loading anymore, though.
Title: Re: OmnomIRC Numbers!
Post by: ruler501 on May 14, 2011, 09:20:41 pm
It happens to me every time I load an omni page.
Title: Re: OmnomIRC Numbers!
Post by: DJ Omnimaga on May 14, 2011, 10:59:51 pm
You can never see OmnomIRC at all? O.O
Title: Re: OmnomIRC Numbers!
Post by: Netham45 on May 14, 2011, 11:05:36 pm
clear cache? :P

Also, I checked, and my servers been running as expected for the past day or so(between 28 and 40 connections, 60-80% RAM usage)
Title: Re: OmnomIRC Numbers!
Post by: ruler501 on May 14, 2011, 11:17:29 pm
I see it it just takes about 3-10 seconds longer than the rest of the page to load.
Title: Re: OmnomIRC Numbers!
Post by: Netham45 on May 16, 2011, 01:19:31 am
Holy shit, a graph!

OmnomIRC v2 was brought up on the 12th at around 8 PM. :D
Title: Re: OmnomIRC Numbers!
Post by: Jim Bauwens on May 16, 2011, 07:52:13 am
Lol, thats awesome!
Good work once again, Netham!
Title: Re: OmnomIRC Numbers!
Post by: DJ Omnimaga on May 17, 2011, 04:29:52 pm
Wow I indeed see a noticeable drop in bandwidth usage! Lol at that spike prior the arrival of the new OmnomIRC o.O