All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.scalecube.gateway.benchmarks.standalone.websocket.StandaloneInfiniteStreamBenchmark Maven / Gradle / Ivy

package io.scalecube.gateway.benchmarks.standalone.websocket;

import io.scalecube.gateway.benchmarks.InfiniteStreamScenario;
import io.scalecube.gateway.benchmarks.standalone.StandaloneBenchmarkState;
import io.scalecube.gateway.clientsdk.Client;
import io.scalecube.gateway.clientsdk.ClientSettings;

public class StandaloneInfiniteStreamBenchmark {

  /**
   * Main runner.
   *
   * @param args program arguments
   */
  public static void main(String[] args) {
    InfiniteStreamScenario.runWith(
        args,
        benchmarkSettings ->
            new StandaloneBenchmarkState(
                benchmarkSettings,
                "ws",
                (address, loopResources) ->
                    Client.onWebsocket(
                        ClientSettings.builder()
                            .address(address)
                            .loopResources(loopResources)
                            .build())));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy