Пример #1
0
class SchemaRegistryBenchmark(SchemaRegistryTest):
    def __init__(self, test_context):
        super(SchemaRegistryBenchmark, self).__init__(test_context,
                                                      num_zk=1,
                                                      num_brokers=3,
                                                      num_schema_registry=1)

        self.num_schema_registry = 1
        self.subject = "testSubject"
        self.num_schemas = 10000
        self.schemas_per_sec = 1000

        self.schema_registry_perf = SchemaRegistryPerformanceService(
            test_context,
            self.num_schema_registry,
            self.schema_registry,
            self.subject,
            self.num_schemas,
            self.schemas_per_sec,
            settings={})

    def test(self):
        self.logger.info(
            "Running SchemaRegistryBenchmark: registering %d schemas on %d schema registry node."
            % (self.num_schemas, self.num_schema_registry))
        self.schema_registry_perf.run()
        self.logger.info(
            "Schema Registry performance: %f per sec, %f ms",
            self.schema_registry_perf.results[0]['records_per_sec'],
            self.schema_registry_perf.results[0]['latency_99th_ms'])
Пример #2
0
    def __init__(self, test_context):
        super(SchemaRegistryBenchmark, self).__init__(test_context,
                                                      num_zk=1,
                                                      num_brokers=3,
                                                      num_schema_registry=1)

        self.num_schema_registry = 1
        self.subject = "testSubject"
        self.num_schemas = 10000
        self.schemas_per_sec = 1000

        self.schema_registry_perf = SchemaRegistryPerformanceService(
            test_context,
            self.num_schema_registry,
            self.schema_registry,
            self.subject,
            self.num_schemas,
            self.schemas_per_sec,
            settings={})
    def __init__(self, test_context):
        super(SchemaRegistryBenchmark, self).__init__(test_context, num_zk=1, num_brokers=3, num_schema_registry=1)

        self.num_schema_registry = 1
        self.subject = "testSubject"
        self.num_schemas = 10000
        self.schemas_per_sec = 1000

        self.schema_registry_perf = SchemaRegistryPerformanceService(
            test_context, self.num_schema_registry,
            self.schema_registry, self.subject, self.num_schemas, self.schemas_per_sec, settings={}
        )
class SchemaRegistryBenchmark(SchemaRegistryTest):
    def __init__(self, test_context):
        super(SchemaRegistryBenchmark, self).__init__(test_context, num_zk=1, num_brokers=3, num_schema_registry=1)

        self.num_schema_registry = 1
        self.subject = "testSubject"
        self.num_schemas = 10000
        self.schemas_per_sec = 1000

        self.schema_registry_perf = SchemaRegistryPerformanceService(
            test_context, self.num_schema_registry,
            self.schema_registry, self.subject, self.num_schemas, self.schemas_per_sec, settings={}
        )

    def test(self):
        self.logger.info("Running SchemaRegistryBenchmark: registering %d schemas on %d schema registry node." %
                         (self.num_schemas, self.num_schema_registry))
        self.schema_registry_perf.run()
        self.logger.info("Schema Registry performance: %f per sec, %f ms",
                         self.schema_registry_perf.results[0]['records_per_sec'],
                         self.schema_registry_perf.results[0]['latency_99th_ms'])