<commit_before>package ru.ifmo.nds.jmh;

import java.util.concurrent.TimeUnit;

import org.openjdk.jmh.annotations.*;

import ru.ifmo.nds.IdCollection;
import ru.ifmo.nds.NonDominatedSorting;
import ru.ifmo.nds.rundb.Dataset;

@State(Scope.Benchmark)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public class JMHBenchmark {
    private NonDominatedSorting sorting;
    private Dataset dataset;

    @Param("Please use ru.ifmo.nds.cli.Benchmark to run this JMH benchmark")
    private String datasetId;

    @Param("Please use ru.ifmo.nds.cli.Benchmark to run this JMH benchmark")
    private String algorithmId;

    @Setup
    public void initializeSorterAndData() {
        dataset = IdCollection.getDataset(datasetId);
        sorting = IdCollection.getNonDominatedSortingFactory(algorithmId)
                .getInstance(dataset.getMaxNumberOfPoints(), dataset.getMaxDimension());<commit_msg>Change timeout to one hour.<commit_after>package ru.ifmo.nds.jmh;

import java.util.concurrent.TimeUnit;

import org.openjdk.jmh.annotations.*;

import ru.ifmo.nds.IdCollection;
import ru.ifmo.nds.NonDominatedSorting;
import ru.ifmo.nds.rundb.Dataset;

@State(Scope.Benchmark)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
@Timeout(time = 1, timeUnit = TimeUnit.HOURS)
public class JMHBenchmark {
    private NonDominatedSorting sorting;
    private Dataset dataset;

    @Param("Please use ru.ifmo.nds.cli.Benchmark to run this JMH benchmark")
    private String datasetId;

    @Param("Please use ru.ifmo.nds.cli.Benchmark to run this JMH benchmark")
    private String algorithmId;

    @Setup
    public void initializeSorterAndData() {
        dataset = IdCollection.getDataset(datasetId);
        sorting = IdCollection.getNonDominatedSortingFactory(algorithmId)
                .getInstance(dataset.getMaxNumberOfPoints(), dataset.getMaxDimension());
{'fraction_non_alphanumeric': 0.09758656873032528, 'fraction_numerical': 0.0005246589716684155, 'mean_word_length': 4.527536231884058, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4042148', 'n_tokens_mistral': 630, 'n_tokens_neox': 607, 'n_words': 119}