Skip to content

Performance fail gracefully #24

@jhkennedy

Description

@jhkennedy

When LIVVkit's performance component can't find enough data, it doesn't always fail gracefully and sometimes produces errors like:

 -----------------------------------------------------------------
   Beginning performance test suite 
 -----------------------------------------------------------------

Process Process-14:
Traceback (most recent call last):
  File ".../lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File ".../lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File ".../lib/python2.7/site-packages/livvkit/components/performance.py", line 89, in _run_suite
    os.path.join(plot_dir, case + "_weak_scaling_efficiency.png")
  File ".../lib/python2.7/site-packages/livvkit/components/performance.py", line 387, in weak_scaling_efficiency_plot
    case_data['means'] = (means[0] / means) * 100
IndexError: index 0 is out of bounds for axis 0 with size 0

These kind of errors should be handled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions