Genereic Function Benchmark

0 views
Skip to first unread message

Jean-Philippe Encausse

unread,
Nov 19, 2009, 9:48:20 AM11/19/09
to Prototype: Core
Hi,

I'm looking for a way to analyse all my javascript code to:
- Count function call
- Check time spend in each function
- Understand bottlenecks

=> Is there existing libs to do this ? (Seems firebug do not do that).
=> Is there a way to "proxy" Functions.prototype to performs bench on
function calls ?

Best Regards,
Jp

Allen Madsen

unread,
Nov 19, 2009, 1:02:18 PM11/19/09
to prototy...@googlegroups.com
You could try unittest_js'[1] benchmark function. It's at the very end
of the file. It'll help with the timing. Other than that, you may like
the page speed extension for firebug.

[1] http://github.com/tobie/unittest_js/blob/master/assets/unittest.js

Allen Madsen
http://www.allenmadsen.com
> --
> You received this message because you are subscribed to the Google Groups "Prototype: Core" group.
> To post to this group, send email to prototy...@googlegroups.com
> To unsubscribe from this group, send email to prototype-cor...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en

Jean-Philippe Encausse

unread,
Nov 20, 2009, 3:26:38 AM11/20/09
to Prototype: Core
Ok Thanks, I'll try this

On 19 nov, 19:02, Allen Madsen <bla...@gmail.com> wrote:
> You could try unittest_js'[1] benchmark function. It's at the very end
> of the file. It'll help with the timing. Other than that, you may like
> the page speed extension for firebug.
>
> [1]http://github.com/tobie/unittest_js/blob/master/assets/unittest.js
>
> Allen Madsenhttp://www.allenmadsen.com
Reply all
Reply to author
Forward
0 new messages