From 43763eb98ac6e9e6630fb4b5f34c21f9539a6ac2 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Tue, 7 May 2024 12:25:57 +0200 Subject: [PATCH] Document precommands --- BENCHMARKS.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/BENCHMARKS.md b/BENCHMARKS.md index e588b1b5b..e1d0c5feb 100644 --- a/BENCHMARKS.md +++ b/BENCHMARKS.md @@ -187,8 +187,8 @@ They are JSON files with the following structure (comments are not actually supp }, // Core of the workload. // A list of commands to run sequentially. - // A command is a request to the Meilisearch instance that is executed while the profiling runs. - "commands": [ + // Optional: A precommand is a request to the Meilisearch instance that is executed before the profiling runs. + "precommands": [ { // Meilisearch route to call. `http://localhost:7700/` will be prepended. "route": "indexes/movies/settings", @@ -224,8 +224,11 @@ They are JSON files with the following structure (comments are not actually supp // - DontWait: run the next command without waiting the response to this one. // - WaitForResponse: run the next command as soon as the response from the server is received. // - WaitForTask: run the next command once **all** the Meilisearch tasks created up to now have finished processing. - "synchronous": "DontWait" - }, + "synchronous": "WaitForTask" + } + ], + // A command is a request to the Meilisearch instance that is executed while the profiling runs. + "commands": [ { "route": "indexes/movies/documents", "method": "POST",