Replies: 1 comment 5 replies
-
Take a look at the benchmark setup we have in IMDBench, the methodology is expanded in this blog post. Without looking at the code it's hard to say where the bottleneck in your benchmark could be. It might be a Docker issue, especially on macOS. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I ran a simple benchmark on a 2 core machine, but the CPU isn't utilized to 100%.
TypeScript client, query builder.
Query an object, filter_single by randomly selected id. All ids are queried before into a JS array, and selected randomly.
Few thousands of queries are started concurrently, then being
await
-ed after all has been launched (Promise.all()
).I don't know where the bottleneck is.
Is the compiler single-threaded? Shouldn't be an issue, as I assume EdgeDB caches the query. I use query parameter for the id, so the query can be fully cached.
The EdgeDB instance is running in Docker.
Is there some parameter I could tune to utilize my CPU to 100%?
I am considering to use EdgeDB for a new project that could involve very high system load. Single thread can be a blocker, causing an ORM and Postgres/MariaDB being used for the new project.
Can an EdgeDB Docker image fully utilize a 32 or 64 core CPU?
Beta Was this translation helpful? Give feedback.
All reactions