Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for MemoryStatsBenchmark (0.13 seconds)

  1. benchmarks/src/main/java/org/elasticsearch/benchmark/indices/breaker/MemoryStatsBenchmark.java

    @Warmup(iterations = 10)
    @Measurement(iterations = 10)
    @BenchmarkMode(Mode.AverageTime)
    @OutputTimeUnit(TimeUnit.MICROSECONDS)
    @State(Scope.Benchmark)
    @SuppressWarnings("unused") // invoked by benchmarking framework
    public class MemoryStatsBenchmark {
        private static final MemoryMXBean MEMORY_MX_BEAN = ManagementFactory.getMemoryMXBean();
    
        @Param({ "0", "16", "256", "4096" })
        private int tokens;
    
        @Benchmark
        public void baseline() {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Feb 03 00:10:53 GMT 2021
    - 2.7K bytes
    - Click Count (0)
  2. benchmarks/README.md

    because we have no control over the JVM running the benchmarks.
    
    If you want to run a specific benchmark class like, say,
    `MemoryStatsBenchmark`, you can use `--args`:
    
    ```
    gradlew -p benchmarks run --args 'MemoryStatsBenchmark'
    ```
    
    Everything in the `'` gets sent on the command line to JMH.
    
    You can set benchmark parameters with `-p`:
    ```
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon May 03 15:30:50 GMT 2021
    - 5.9K bytes
    - Click Count (0)
Back to Top