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

de.rwth.i2.attestorExamples.Recursive Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version

package de.rwth.i2.attestorExamples;

import jmhBenchmarkHelper.BenchmarkHelper;
import org.openjdk.jmh.annotations.Benchmark;
import de.rwth.i2.attestor.main.Attestor;

public class Recursive {

    @Benchmark
    public void sll_rec_traversal() {
        BenchmarkHelper.builder()
                .expectFinalStates(1)
                .build()
                .run();
    }

    @Benchmark
    public void sll_rec_build() {
        BenchmarkHelper.builder()
                .expectFinalStates(1)
                .build()
                .run();
    }

    @Benchmark
    public void tree_rec_traversal() {
        BenchmarkHelper.builder()
                .expectFinalStates(1)
                .expectTotalStates(1170)
                .expectMainProcedureStates(9)
                .build()
                .run();
    }

    
    @Benchmark
    public void sll_rec_zip() {
        BenchmarkHelper.builder()
                .expectFinalStates(1)
                .expectTotalStates(575)
                .expectMainProcedureStates(20)
                .build()
                .run();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy