Comparison of performance impact for anonymous functions with JavaScript variable versus local named functions.

# On Count Var|Half|Ggl full, sec run, sec eval, sec file size, bytes render, sec Browser Urls
0 10000 Each Fun Local 0.13 0.13 0.103 1087890 ? Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) script
1 5000 Half Fun Local 0.089 0.065 0.074 1087890 0.024 Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) script
2 10000 Each Var Local 0.099 0.096 0.108 1127890 0.003 Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) script
3 5000 Half Var Local 0.073 0.071 0.083 1127890 0.002 Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) script
4 10000 Each Fun Global 0.062 0.058 0.096 1087894 0.004 Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) script
5 5000 Half Fun Global 0.044 0.04 0.071 1087894 0.004 Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) script
6 10000 Each Var Global 0.078 0.074 0.107 1127894 0.004 Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) script
7 5000 Half Var Global 0.048 0.045 0.079 1127894 0.003 Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) script
total functions > 130000
total time, sec 2.065
prerendered static files: 500 | 1000 | 3000 | 10000

Goal is to compare timing on similar set of functions(named and anonymous) for:

Additional requirements:

Sources:

index.jsp - this file | AnonymousJsVsNamed.js.jsp - JS rendering JSP
� Sasha Firsov, 2010