Package schrodinger :: Package test :: Module performance
[hide private]
[frames] | no frames]

Module performance

Basic client-side components for performance testing. Typical clients should only need to use the report_results function (and optionally get_test, but watch this space for functions to use with your metrics.

Also includes a demonstration/minimal performance job, distribution_size.


Copyright: (c) Schrodinger, LLC All rights reserved.

Classes [hide private]
  BadResponse
When a http reponse status code does not match the expected.
Functions [hide private]
 
get_test(test_id, username=None)
Get a single test from the performance database.
 
report_results(test_id, build_id, buildtype='Dev', username=None, **metrics)
Report the results of test_id to the database.
 
os_version()
Get the OS version from the platform module.
str
processor_string()
Returns a string of processor information.
 
system_information()
System information required to report results.
 
post_system(auth)
 
install_information(build_id, buildtype='Dev')
Execution environment information required to report results.
Variables [hide private]
  HOST = 'https://stu.schrodinger.com'
  TEST_URL = 'https://stu.schrodinger.com/performance/api/v1/test/'
  RESULT_URL = 'https://stu.schrodinger.com/performance/api/v1/r...
  SYSTEM_URL = 'https://stu.schrodinger.com/api/v1/system/'
  MB = 1048576.0
  __package__ = 'schrodinger.test'
Function Details [hide private]

get_test(test_id, username=None)

 

Get a single test from the performance database.

Mostly useful to get metrics and their units of measure.

report_results(test_id, build_id, buildtype='Dev', username=None, **metrics)

 

Report the results of test_id to the database. metrics are keyword/value pairs, with the keyword being a string and the value a number.

Parameters:
  • test_id - Test #, corresponds to a test in the database
  • build_id - e.g. build07 for OBs, 2014-03-25 for NBs
  • buildtype - OB, NB, CB, or Dev
  • username - Username of the user recording the test
  • metrics - Keyword/value pairs of metrics recorded and values found.

processor_string()

 

Returns a string of processor information.

Uses platform.processor, sysctl -n machdep.cpu.brand_string, or /proc/cpuinfo on Windows, Mac and Linux, respectively.

Returns: str
Processor information (manufacturer, speed, etc.)

Variables Details [hide private]

RESULT_URL

Value:
'https://stu.schrodinger.com/performance/api/v1/result/'