Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pantsbuild.pants / backend / jvm / targets / benchmark.py
Size: Mime:
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from pants.backend.jvm.targets.jvm_target import JvmTarget
from pants.backend.jvm.targets.runtime_platform_mixin import RuntimePlatformMixin
from pants.base.payload import Payload


class Benchmark(RuntimePlatformMixin, JvmTarget):
    """A caliper benchmark.

    Run it with the ``bench`` goal.
    """

    def __init__(self, payload=None, runtime_platform=None, **kwargs):
        """
        :param str runtime_platform: The name of the platform (defined under the jvm-platform subsystem) to use
                             for runtime (that is, a key into the --jvm-platform-platforms
                             dictionary). If unspecified, the platform will default to the first one of
                             these that exist: (1) the default_runtime_platform specified for
                             jvm-platform, (2) the platform that would be used for the platform kwarg.
        """
        payload = payload or Payload()
        super().__init__(payload=payload, runtime_platform=runtime_platform, **kwargs)