| During my testing of Google NLP API I found REST API response time (1.4 secs) to be faster than Node js client API response time (2 secs) . I am making API calls from a Meteor server. |
| Here is a snapshot of the code: Node js client: in an async function: set up auth, request, etc. | let startTime = moment.now(); response = await client.annotateText(request); console.log("api time : ", moment.now() - startTime); REST API: in an async function: set up data, etc. let startTime = moment.now(); | response = await HTTP.call("POST", | "https://language.googleapis.com/v1beta2/documents:annotateText?key=KEY_VALUE", | { data } | ); |