TranslatorSRI / PerformanceTestRunner

Run performance tests against the Translator system
MIT License
0 stars 0 forks source link

Performance Testing

This testing framework performs stress/load testing on ARS, ARAs, KPs, sri-node-normalizer and sri-answer-appraiser services

Performance Test Runner Implementation

pip install PerformanceTestRunner 

CLI

The command-line interface is the easiest way to run the PerformanceTestRunner After installation, simply type PerformanceTestRunner --help to see required input arguments & options

python

import asyncio
from PerformanceTestRunner.load_test import run_load_testing
asyncio.run(run_load_testing('ci',3, ['biolink:treats','biolink:affects','biolink:affects'],['inferred'],['','activity_or_abundance','activity_or_abundance'],['','increased','decreased'],['biolink:Disease','biolink:Gene','biolink:ChemicalEntity'],['MONDO:0009265','NCBIGene:23394','PUBCHEM.COMPOUND:5881'],['ARS','ARAs', 'KPs', 'Utility']))

OR

python load_test.py --env 'ci' --count 3 --predicate 'biolink:treats' 'biolink:affects' 'biolink:affects' --runner_setting 'inferred'  --biolink_object_aspect_qualifier '' 'activity_or_abundance' 'activity_or_abundance' --biolink_object_direction_qualifier '' 'increased' 'decreased'  --input_category 'biolink:Disease' 'biolink:Gene' 'biolink:ChemicalEntity' --input_curie 'MONDO:0009265' 'NCBIGene:23394' 'PUBCHEM.COMPOUND:5881' --component 'ARS' 'ARAs' 'KPs' 'Utility'