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

Testing goal

Our main goal was to observe the response time of text processing and CPU utilization on the server when 100 users send simultaneous requests on various languages to the server with WebSpellChecker v5.6.2. 

Environment and testing tool

Testing process

We have run our tests continuously 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:

The measured metrics were the response time and CPU utilization.

Observations

Our observations are presented in the charts below.

Response time and CPU utilization (only 35 misspellings)

The chart below represents response time results aggregated by language when there are only 35 misspellings in text of 1K word size.


The chart below represents CPU utilization results aggregated by language and user tiers when there are only 35 misspellings in text of 1K word size.



Response time and CPU utilization (only 15 grammar problems)

The chart below represents response time results aggregated by language when there are only 15 grammar problems in text of 1K word size.


The chart below represents CPU utilization results aggregated by language when there are only 15 grammar problems  in text of 1K word size.

Response time and CPU utilization (35 misspellings and 15 grammar problems)

The chart below represents response time results aggregated by language when there are 35 misspellings and 15 grammar problems in text of 1K word size.

The chart below represents CPU utilization results aggregated by language when there are 35 misspellings and 15 grammar problems in text of 1K word size.

Summary response time and CPU utilization

The chart below represents response time results aggregated by language for 100 simultaneous users in case of three scenarious: 35 mispellings only, 15 grammar problems only, 35 misspellings and 15 grammar problems.

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:

During testing we used API requests which contain 1K words per request where 3.5% of words are spelling errors and 1.5% are for grammar errors. On average a person writing on the second language makes around 4%-5% of errors in total. The 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.