This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App { | |
public static void main(final String[] args) throws Exception { | |
Options opts = new OptionsBuilder() | |
.include(".*") | |
.warmupIterations(10) | |
.measurementIterations(10) | |
.forks(10) | |
.resultFormat(ResultFormatType.TEXT) | |
.build(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@OutputTimeUnit(TimeUnit.SECONDS) | |
@State(Scope.Thread) | |
public class MyBenchmark { | |
private Pattern pattern; | |
private String warandpeace; | |
@Setup | |
public void prepare() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.boris.testbench;/** | |
* Created by Boris on 18/03/2017. | |
*/ | |
import java.io.IOException; | |
import java.util.stream.Stream; | |
import javafx.animation.KeyFrame; | |
import javafx.animation.Timeline; | |
import javafx.application.Application; |