[jQuery] Re: best/standard way to benchmark your own scripts?
thanks :) i use firebug but i wasnt aware of the profiling... :) On Sep 17, 8:20 pm, Ariel Flesler [EMAIL PROTECTED] wrote: I made my own benchmarker some time ago (3-4 months). It's not perfect but it did the job for me. You can check it here:http://benchmarker.flesler.com/ The deploy part isn't included in the js. It's OO, you can create Benchmarker instances. I used it mainly to check different approaches for frequent problems. Also some experiments. -- Ariel Fleslerhttp://flesler.blogspot.com/ On Sep 17, 1:14 am, Alex Weber [EMAIL PROTECTED] wrote: looking to find possible bottlenecks and basically optimize the hell outta my js which relies heavily on jquery and the occasional plugin... is there a more elegant and efficient way to do this than to toss a few document.write()s at my code?? =P thanks!! -Alex
[jQuery] Re: best/standard way to benchmark your own scripts?
While firebug's profile is ok... it inflates times quite a lot, prolly due to all the stuff it inserts around in your code. I compare FF w/FB vs FF w/o FB and the results were a lot different. I'd not recommend it for very specific tests. Also, some approaches can be faster on FF and slower on other browsers (like string concatenation vs array push+join). -- Ariel Flesler http://flesler.blogspot.com/ On Sep 17, 1:51 pm, ricardobeat [EMAIL PROTECTED] wrote: Do you use Firebug? It has a Profile option under the Console tab, that will profile (duh) all js action going on while it's on, giving you details like number of function calls and the time each took to execute, that's plenty of information ;) ricardo On Sep 17, 1:14 am, Alex Weber [EMAIL PROTECTED] wrote: looking to find possible bottlenecks and basically optimize the hell outta my js which relies heavily on jquery and the occasional plugin... is there a more elegant and efficient way to do this than to toss a few document.write()s at my code?? =P thanks!! -Alex
[jQuery] Re: best/standard way to benchmark your own scripts?
Do you use Firebug? It has a Profile option under the Console tab, that will profile (duh) all js action going on while it's on, giving you details like number of function calls and the time each took to execute, that's plenty of information ;) ricardo On Sep 17, 1:14 am, Alex Weber [EMAIL PROTECTED] wrote: looking to find possible bottlenecks and basically optimize the hell outta my js which relies heavily on jquery and the occasional plugin... is there a more elegant and efficient way to do this than to toss a few document.write()s at my code?? =P thanks!! -Alex
[jQuery] Re: best/standard way to benchmark your own scripts?
Someone is bound to have a better answer than this, but to get you started with profiling, have a look at this page where I include some code to time my script execution: http://andrew.hedges.name/experiments/simple-templates-speed-test/ It wouldn't be much of a stretch to apply this same pattern to individual parts of the script to get a more detailed view. That said, I'm pretty sure there are (commercial?) tools out there that let you profile scripts in some detail. I'd be interested to know, too, if there are any that are free software. -Andrew On Sep 17, 4:14 pm, Alex Weber [EMAIL PROTECTED] wrote: looking to find possible bottlenecks and basically optimize the hell outta my js which relies heavily on jquery and the occasional plugin... is there a more elegant and efficient way to do this than to toss a few document.write()s at my code?? =P thanks!! -Alex
[jQuery] Re: best/standard way to benchmark your own scripts?
I made my own benchmarker some time ago (3-4 months). It's not perfect but it did the job for me. You can check it here: http://benchmarker.flesler.com/ The deploy part isn't included in the js. It's OO, you can create Benchmarker instances. I used it mainly to check different approaches for frequent problems. Also some experiments. -- Ariel Flesler http://flesler.blogspot.com/ On Sep 17, 1:14 am, Alex Weber [EMAIL PROTECTED] wrote: looking to find possible bottlenecks and basically optimize the hell outta my js which relies heavily on jquery and the occasional plugin... is there a more elegant and efficient way to do this than to toss a few document.write()s at my code?? =P thanks!! -Alex