Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:expgraphqlbench

Misst die Geschwindigkeit der GraphQL-API an Entscheidung 18: zwischengespeichertes GET, 304, zwischengespeichertes POST, eine zwischengespeicherte Antwort über den Kernel und eine nicht zwischengespeicherte Abfrage, je…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/expgraphqlbench.md

On this page

This page is a translation. Read the English original

exp:expgraphqlbench

Misst die Geschwindigkeit der GraphQL-API an Entscheidung 18: zwischengespeichertes GET, 304, zwischengespeichertes POST, eine zwischengespeicherte Antwort über den Kernel und eine nicht zwischengespeicherte Abfrage, je N Anfragen, mit Median, p95 und Maximum.

Skript bin/php/expgraphqlbench.php, Code in kernel/private/classes/commands/expgraphqlbench.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:expgraphqlbench --help
./console exp:graphql:bench --help
php bin/php/expgraphqlbench.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Measure the speed of the GraphQL API against decision 18
Sends the requests of each row one after the other to an end point, --requests times each
(after two that warm it up), --runs times, and prints the median, p95 and max of every row:

  get       a cached persisted query, GET ?id=          (answered before the kernel starts)
  304       the same with If-None-Match
  post      a cached persisted query, POST JSON {id}    (answered before the kernel starts)
  kernel    a cached persisted query as a form POST, which starts the kernel (what the first
            request of new credentials costs)
  uncached  the text of --query-file as an ad-hoc POST (never cached)

Every cached answer must come within 33 ms (the hard limit, on every request); the targets are
20 ms, then 13 ms, for the median and the p95. Uncached answers are measured, without a limit.
A time runs from the request being sent to the last byte of the answer (one connection for all,
so the TLS handshake is not in it). An OAuth token or a personal API key is read from the
environment variable

Optionen

OptionWertHilfe
--urlerforderlichder Endpunkt, z. B. https://example.com/api/graphql
--iderforderlichder Name oder SHA-256 der gespeicherten Abfrage, die gemessen wird
--variableserforderlichdie Variablen der Abfrage, als JSON
--query-fileerforderlicheine .graphql-Datei mit dem Text der Abfrage, für die Zeile ohne Zwischenspeicher
--requestserforderlichAnfragen je Zeile und Durchlauf (Standard 200)
--runserforderlichwie oft jede Zeile läuft (Standard 3)
--rowserforderlichdie Zeilen, die laufen, durch Kommas getrennt: get,304,post,kernel,uncached (Standard alle)
--siteaccess-headererforderlichX-Siteaccess mit diesem Siteaccess senden
--insecuredas TLS-Zertifikat nicht prüfen (ein eigener Testserver)
--formaterforderlichtext (Standard) oder json

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/expgraphqlbench.php, kernel/private/classes/commands/expgraphqlbench.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x