Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for benchmarkFrom (0.08 seconds)

  1. benchmarks/src/main/java/org/elasticsearch/benchmark/time/DateFormatterFromBenchmark.java

    public class DateFormatterFromBenchmark {
    
        private final TemporalAccessor accessor = DateFormatter.forPattern("epoch_millis").parse("1234567890");
    
        @Benchmark
        public TemporalAccessor benchmarkFrom() {
            // benchmark an accessor that does not contain a timezone
            // this used to throw an exception earlier and thus was very very slow
            return DateFormatters.from(accessor);
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Feb 03 00:10:53 GMT 2021
    - 1.6K bytes
    - Click Count (0)
Back to Top