@@ -0,0 +1,1425 @@
+package org.sfm.csv;%0A%0Aimport org.openjdk.jmh.annotations.Benchmark;%0Aimport org.openjdk.jmh.annotations.Scope;%0Aimport org.openjdk.jmh.annotations.State;%0Aimport org.openjdk.jmh.infra.Blackhole;%0Aimport org.sfm.csv.parser.CellConsumer;%0A%0Aimport java.io.IOException;%0Aimport java.util.List;%0A%0A@State(Scope.Benchmark)%0Apublic class CsvParserBenchmark %7B%0A%0A    public String csv = %22val,val2  sdssddsds,lllll llll,sdkokokokokads%3C%3ESddsdsds,adsdsadsad,1,3,4%22;%0A%0A%0A    public static final CsvParser.DSL dsl = CsvParser.dsl();%0A%0A    public static final CsvParser.DSL tdsl = CsvParser.dsl().trimSpaces();%0A%0A    @Benchmark%0A    public void parse(Blackhole blackhole) throws IOException %7B%0A        dsl.parse(csv, new MyCellConsumer(blackhole));%0A    %7D%0A%0A    @Benchmark%0A    public void parseTrim(Blackhole blackhole) throws IOException %7B%0A        tdsl.parse(csv, new MyCellConsumer(blackhole));%0A    %7D%0A%0A    private static class MyCellConsumer implements CellConsumer %7B%0A        private final Blackhole blackhole;%0A%0A        public MyCellConsumer(Blackhole blackhole) %7B%0A            this.blackhole= blackhole;%0A        %7D%0A%0A        @Override%0A        public void newCell(char%5B%5D chars, int offset, int length) %7B%0A            blackhole.consume(chars);%0A            blackhole.consume(offset);%0A            blackhole.consume(length);%0A        %7D%0A%0A        @Override%0A        public void endOfRow() %7B%0A%0A        %7D%0A%0A        @Override%0A        public void end() %7B%0A%0A        %7D%0A    %7D%0A%7D%0A

add benchmark