Does anyone know if there are studies done that show the performance overhead of using javascript libraries (other than the obvious of their download time) vs using just basic javascript? The libraries are so huge these days and I was curious.
From my computer science degree it seems it should have growth n. (in other words linear).
In computer science terms this is non threatening but how does it actually effect page loading time and page performance in milliseconds? I know CPU is an issue, RAM, and so on. But are there any test performed that can gauge these sorts of things?
I know another factor is libraries are often optimized to do much the same thing you'd be coding by hand in a less optimized fashion but also libraries have overhead and not all of that functionality will be used.
Edit: I found this that seems to answer my question thoroughly even though it started out about something else: When to use Vanilla JavaScript vs. jQuery?
"As the comments are quick to point out (and I agree with 100%) the statements above refer to benchmarking code. A 'native' JavaScript solution (assuming it is well written) will outperform a jQuery solution that accomplishes the same thing in nearly every case (I'd love to see an example otherwise). jQuery does speed up development time, which is a significant benefit which I do not mean to downplay. It facilitates easy to read, easy to follow code, which is more than some developers are capable of creating on their own.
In my opinion then, the answer depends on what you're attempting to achieve. If, as I presumed based on your reference to performance benefits, you're after the best possible speed out of your application, then using jQuery introduces overhead every time you call $(). If you're going for readability, consistency, cross browser compatibility, etc, then there are certainly reasons to favor jQuery over 'native' JavaScript."