#community-help

Benchmarks and Concurrent Users for Typesense

TLDR A inquired about the number of concurrent users Typesense can support. Jason suggested benchmarking for better accuracy, while Kishore Nallan mentioned about an upcoming feature. Jason and Kishore Nallan both recommended tools and gave references for performing benchmarks.

Powered by Struct AI
1002
+11
heavy_plus_sign1
11
28mo
Solved
Join the chat
May 19, 2021 (28 months ago)
A
Photo of md5-98c72c3023867be0346b48ae4cb22001
A
04:27 AM
how many concurrent users searching can typesense support at 512 mb and 1gb?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:28 AM
It would totally depend on the type of queries and the size of the data that’s retrieved with every search
04:29
Jason
04:29 AM
So getting a representative set of queries and doing a benchmark is the best way to get an accurate picture
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
04:29 AM
In the next version, we will be introducing some basic caching support that will pretty much greatly increase performance if your dataset does not change too often or you are okay in serving slightly stale results (e..g 60 seconds lag).
1002
A
Photo of md5-98c72c3023867be0346b48ae4cb22001
A
04:30 AM
yes, my data doesn’t change that much
04:30
A
04:30 AM
i’m just trying to understand how many users it can support — any idea on how to go about the benchmark? Jason
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:31 AM
04:32
Jason
04:32 AM
04:32
Jason
04:32 AM
It uses an OSS load testing framework called k6
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
04:34 AM
Another quick option will be to use siege which allows you to load a set of URLs from a text file. So you can generate a set of query URLs and then ask siege to hit it: https://www.linode.com/docs/guides/load-testing-with-siege/
heavy_plus_sign1
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:34 AM
Also here are some benchmark numbers on different datasets to give you a rough ballpark idea of concurrency: https://github.com/typesense/typesense#benchmarks
+11