Skip to content

Which good practice to test benchmark call Tarantool store prodecdure? #7506

Answered by Totktonada
measproem asked this question in Q&A
Discussion options

You must be logged in to vote

It seems that the benchmark code just waits for a response most of time:

  1. client.call_fn() sends a request to the network.
  2. .await? waits for a response. Here we spend most of time. And here we do nothing.
  3. The response is processed.
  4. Go to 1.

(Since I'm not familiar with the programming language, the framefork and the connector you're using, I can completely misunderstand the code.)

I can't suggest how exactly you should reorganize the code to use the power of asynchronous interation with the network. However I can sketchy describe an approach, which should give better numbers:

  1. Send BATCH_SIZE (say, 1000) requests asynchronously. Save future/promise objects. Let's name it batch N.
  2. Wait fo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@measproem
Comment options

Answer selected by measproem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants