simplebench.enums.target module🔗

Target enums for SimpleBench.

class simplebench.enums.target.Target(
value,
names=<not given>,
*values,
module=None,
qualname=None,
type=None,
start=1,
boundary=None,
)[source]🔗

Bases: str, Enum

Categories for different output targets.

The enums are used in generating calling parameters for the report() methods in the Reporter subclasses.

Defined Targets are:
  • CONSOLE: Output to console.

  • FILESYSTEM: Output to filesystem.

  • CALLBACK: Pass generated output to a callback function.

  • CUSTOM: Output to a custom target.

  • NULL: No output.

CALLBACK = 'callback'🔗

Pass generated output to a callback function.

CONSOLE = 'console'🔗

Output to console.

CUSTOM = 'custom'🔗

Output to a custom target.

FILESYSTEM = 'filesystem'🔗

Output to filesystem.

INVALID = 'invalid'🔗

Invalid target. This is a testing placeholder and should not be used.

NULL = 'null'🔗

No output.