Skip to content

Instantly share code, notes, and snippets.

<?php
$s1 = microtime(true);
for ($i = 0; $i < 20; $i++) {
exec('php gapic.php');
}
print microtime(true) - $s1 . PHP_EOL;
$s2 = microtime(true);
{
"version": "v1beta2",
"baseUrl": "https://language.googleapis.com/",
"servicePath": "",
"description": "Provides natural language understanding technologies to developers. Examples include sentiment analysis, entity recognition, entity sentiment analysis, and text annotations.",
"kind": "discovery#restDescription",
"basePath": "",
"id": "language:v1beta2",
"revision": "20170525",
"documentationLink": "https://cloud.google.com/natural-language/",
@dwsupplee
dwsupplee / translate-v2.json
Created November 23, 2016 17:28
Translations via POST
{
"kind": "discovery#restDescription",
"etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/6s__cFeA5l1i01rONlu3TmUQEHs\"",
"discoveryVersion": "v1",
"id": "translate:v2",
"name": "translate",
"version": "v2",
"revision": "20160627",
"title": "Translate API",
"description": "Translates text from one language to another.",