Performance question: Is there a performance difference b/t cURL and JS?

Is there a performance difference between using JS vs. cURL to post data to other services?

What’s the reason to use one method vs. the other?