This document describes the results of performance tests for WebSpellChecker Web API. The performance and load were tested and accessed depending on the following setup:

Testing goal

Our main goal was to observe the response time of text processing and CPU utilization on the server in the case when 10/20/50/100 users send simultaneous requests on various languages to the server with WebSpellChecker v5.5.9.

Environment and testing tool

Testing process

We have run our tests continuously increasing the number of users accessing it for each of the languages in the default language group (17 languages). The cache setting was enabled for all sets of tests. The following combinations of text to be checked are used for each language and for each user tier:

The measured were the response time and CPU utilization.

Observations

Our observations are presented in the charts below.

Response time and CPU utilization (only 200 misspellings)

Chart below represents response time results aggregated by language and user tiers when there are only 200 misspellings in text of 1K words size.

Chart below represents CPU utilization results aggregated by language and user tiers when there are only 200 misspellings in text of 1K words size.

Response time and CPU utilization (only 50 grammar problems)

Chart below represents response time results aggregated by language and user tiers when there are only 50 grammar problems in text of 1K words size.

Chart below represents CPU utilization results aggregated by language and user tiers when there are only 50 grammar problems  in text of 1K words size.

Response time and CPU utilization (200 misspellings and 50 grammar problems)

Chart below represents response time results aggregated by language and user tiers when there are200 misspellings and 50 grammar problems in text of 1K words size.

Chart below represents CPU utilization results aggregated by language and user tiers when there are 200 misspellings and 50 grammar problems  in text of 1K words size.

Findings and recommendations

Here are the outcomes and aftermath as well as our advice on hardware and software requirements and notes on performance issues which users may encounter:

Demonstrated results are far away from the reality and real use cases especially if to consider using UI-based products as WProofreader. During testing we used API requests which contain 1K words per request where 20% of words are spelling errors and 5% are for grammar errors. On average a person writing on the second language makes around 4%-5% of errors. This is 5 times less than used during tests. Secondly, a mechanism of requests distribution and size of each requests for UI-based product are being optimized greatly to ensure smooth experience for users and decrease the load on the servers.

If you have any questions or comments regarding the outlined results, please fill free to contact us.