NuProcess Documentation

repository·master·Indexed 20 days ago

https://github.com/brettwooldridge/nuprocess

A high-performance library available via Maven. Version 4.x is for Java 25 or newer, while the JNA-based 3.x release is for Java versions prior to 25. Includes a JMH (Java Microbenchmark Harness) suite for performance evaluation via the benchmark.sh script.

Tokens
593
Snippets
4
Records
5
Agent score
23%

What's inside NuProcess

  1. Install NuProcess via Maven

    master

    NuProcess provides different versions based on your Java runtime.

    For Java 25 or newer, use version 4.x. For Java versions prior to 25, use the JNA-based 3.x release.

    Note that versions 1.0.0 and above contain breaking API changes from 0.9.7.

    <!-- For Java 25+ -->
    <dependency>
        <groupId>com.zaxxer</groupId>
        <artifactId>nuprocess</artifactId>
        <version>4.0.0</version>
        <scope>compile</scope>
    </dependency>
    
    <!-- For Java < 25 -->
    <dependency>
        <groupId>com.zaxxer</groupId>
        <artifactId>nuprocess</artifactId>
        <version>3.0.0</version>
        <scope>compile</scope>
    </dependency>
  2. Reference benchmark.sh command line options

    master

    The following options are available for the benchmark.sh script:

    • clean: Recompile the benchmark.
    • -t <threads>: Execute JMH with the specified number of threads.
    • quick: A "quick" run of the benchmark; fewer iterations and forks.
    • medium: A "medium" run of the benchmark; more iterations and forks.
    • long: A "long" run of the benchmark; maximum iterations and forks.
    • profile: Start JMH such as to allow attaching JProfiler (MacOS).
    • debug: Start JMH such as to allow the attachment of a debugger.