Pretty basic really; I put each in a .js file and did:

`````
for (var i=0; i<1000000; i++) {
    var result = func(a,b,c,d);
}
`````

Then I ran them a few times as:

time node foo.js

Averaged the difference between each of the calls and then divided 1000000 by the time