Skip to main content
Version: 1.1.0

Benchmarks

Load Testing

Load testing helps evaluate the quality and speed of Image API operation under a certain load at a given time interval. A test image used is 438 KB (1024х1024 px) jpeg image.

Note: when testing larger images, the speed of request execution decreases.

Specification of the test system:

  • CPU: AMD Ryzen 9 5950X 16-Core (32 threads)
  • GPU: GeForce GTX 1080 Ti
  • RAM: 120GB

Load testing parameters:

  • RPS: number of requests per second
  • Number of replicas
  • Request time (ms) AVG: average time on 1 request in ms

The results of Image API load testing are given below:

ServiceRPSReplicasRequest time (ms) AVG
face-detector-face-fitter1177.25
11288583.93
age-estimator1134.79
19232634.21
gender-estimator1135.05
17648620.79
verify-matcher114.08
642023.34
quality-assessment-estimator1174.08
9680632.52
face-detector-template-extractor (GPU)11105.80
81674.42
face-detector-template-extractor (CPU)11481.53
418564.23
body-detector11171.94
1632534.46
emotion-estimator1149.17
9632653.64
mask-estimator1135.01
19296686.04

Accuracy Testing

Accuracy of age-estimator, gender-estimator and emotion-estimator

ServiceAccuracy
age-estimator+/- 3.95 years
gender-estimator95%
emotion-estimator80%

Accuracy of mask-estimator

To calculate operation accuracy, the following metrics are used:

  • Precision: the metric shows how accurate the service is and represents the number of true positive results relative to all positive results.
  • Recall: the metric indicates how completely the service covers the correct results, and represents the number of correct positive results in relation to all the results that should be positive.
  • F1 score is one of the ways to combine precision and recall metrics into an aggregate accuracy criterion. F1 score reaches its maximum at recall and precision equal to one, and is close to zero if one of the arguments is close to zero. F1 score is a harmonic mean (with a multiplier of 2, so that in the case of precision = 1 and recall = 1 get F1 = 1).
MetricValue
Precision0.9967532468
Recall0.9903225806
F1 score0.9935275081

Accuracy of face-detector-liveness-estimator

To calculate operation accuracy, the following metrics are used:

  • APCER: the metric shows the proportion of validation dataset attacks that were classified as real biometric presentations.
  • BPCER: the metric shows the proportion of real biometric presentations classified as attacks.
Image TypeMetricValue
real faceBPCER0.29981
photoAPCER0.04911
photo without backgroundAPCER0.12
replay attackAPCER0.01339
2D maskAPCER0.02888
3D maskAPCER0.01333

Note: average request time equals 0.3 s.