Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6038905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:17:25+00:00 2026-05-23T06:17:25+00:00

When I search for performance of Javascript libraries I get many sites showing the

  • 0

When I search for performance of Javascript libraries I get many sites showing the comparision of performance between the following popular libraries

  • jQuery (pretty slow)
  • Prototype(very slow in IE)
  • Dojo ( fastest when comes to DOM )
  • ExtJs (average)
  • Micro JS( slow but OK )

But in any of the benchmarks, Google Closure Library is NOT included. Is it not like any other standard library for it is said that it is a procedural style library.

I need some benchmarks on the performance of Closure library. And would like an advice on “Is switching to Closure library good when using dojo at beginner stage and jQuery at some intermediate stage”

Google posts that it uses the closure library in all its apps like Gmail, etc… The performance is very good. Is this because of the library ? Can an intermediate javaScript coder who can write OO code in JS use Closure library to very high level, or is it advisable to continue using DOJO.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:17:26+00:00Added an answer on May 23, 2026 at 6:17 am

    On Closure Library

    The Closure Library is pretty close to Dojo in style — actually, when it was first developed, the authors took inspiration from Dojo.

    However, the speed and power of the Closure Library came from the Closure Compiler, which heavily optimizes a JavaScript program in order to remove all the bottlenecks (such as navigating chains of namespaces).

    I personally don’t like it a single bit as it detracts from the beauty of Dojo class-based constructs (simply to satisfy the compiler) and all those goog.kitchen.sink.getMeACupOfTeaSoICanRelax() long namespaces make writing (and reading) JavaScript programs a royal pain — the fact that long namespaces are all optimized away by the compiler does not make it pretty (to me) to overuse them because you can.

    In addition, its obsession with trying to make JavaScript programs look as much OOP as possible (perhaps because there are tons of Java programmers in Google) means over-reliance on OOP concepts like property getters and setters and the avoidance of many useful (and unique) JavaScript features like mixin’s. If you are a Java programmer learning to program in JavaScript, you’ll be right at home using the Closure Library. That doesn’t make it any bit elegant.

    It does, however, offer an industrial strength environment that is rock solid — since Google has built HUGE sites with it. It is something that (in my personal opinion) is solid and works well, but looks ugly.

    However, Dojo is rock solid as well, but more volatile since it is an open-source development project. You decide whether you’d like to switch.

    On the Closure Compiler and Dojo

    Actually, you can use Dojo with the Closure Compiler in Advanced Mode also. See this link for a description on how to do it. Based on my own tests, a program compiled by the Closure Compiler is typically around 25% smaller than minified versions (due to dead-code elimination) and runs about 20-30% faster for simple pages and more for large pages.

    On Speed of Libraries in General

    Other libraries all have their own characteristics and quirks, and each balance useability, flexibility and power with performance. For example, jQuery creates many many jQuery objects on the way and has a performance penalty, especially on older browsers. However, modern browsers, esp. Google Chrome, actually does optimizations so that the performance hits of using jQuery is minimal.

    You actually need to ask yourself why you need JavaScript to run fast. Most modern browsers are already quite fast so that it is really not a very important consideration regarding choice of library. Better choose your library based on whether it suits you or not (and the task you’re at hand) instead of whether it runs 10ms faster in a browser.

    If you are writing a web site for mobile devices, or writing an HTML5 game for instance, you may need to squeeze the last drop of performance (in games) and/or save as much resources as possible (in mobile). In such cases, I find that using Dojo and then compiling with the Closure Compiler yields one of the best combinations for such scenarios.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can the performance of this sequential search algorithm (taken from The Practice of Programming
I have been using the DataTables plugin for jQuery (http://www.datatables.net) to search, sort and
Postgres Full Text Search performance seems to depend on the dictionary you use, here's
Search the web for the phrase I cosay. I run across this phrase being
I search for nurple in a file. I found it, great. But now, every
Which search engine would you recommend for a Commerce website? We have millions of
i search a good tutorial to learn how to use entity framework in the
Binary search is harder to implement than it looks. Although the basic idea of
When implementing a needle search of a haystack in an object-oriented way, you essentially
I want to implement search functionality for a website (assume it is similar to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.