2 ms·
no, but I could probably have worded it better. What I mean to say is that if you do this in JS: function add (a, b) { return a + b; } and this in
by phpnode 12y ago
no, but I could probably have worded it better. What I mean to say is that if you do this in JS:
function add (a, b) {
return a + b;
}
and this in C:
int add(int a,int b)
{
return a + b;
}
you're going to get essentially the same performance.
The latter sentence you quoted refers to the specific builtin functions that fast.js re-implements. So we first get close to native performance in JS, then we beat the builtin functions by doing less work overall.
- dabernathy89 12y agogotcha, thanks for the clarification