DateFormatterBenchmark Class — netty Architecture
Architecture documentation for the DateFormatterBenchmark class in DateFormatterBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 4c6f1492_7afa_8d08_d2d7_b5d9dbe26169["DateFormatterBenchmark"] a037fb33_5157_9f13_66df_48c4af9f0503["DateFormatterBenchmark.java"] 4c6f1492_7afa_8d08_d2d7_b5d9dbe26169 -->|defined in| a037fb33_5157_9f13_66df_48c4af9f0503 febf072a_dac8_0a63_e37c_cb4020b0eadb["Date()"] 4c6f1492_7afa_8d08_d2d7_b5d9dbe26169 -->|method| febf072a_dac8_0a63_e37c_cb4020b0eadb 3042777d_ca17_e73e_ea79_94915fe80ab5["String()"] 4c6f1492_7afa_8d08_d2d7_b5d9dbe26169 -->|method| 3042777d_ca17_e73e_ea79_94915fe80ab5
Relationship Graph
Source Code
microbench/src/main/java/io/netty/handler/codec/DateFormatterBenchmark.java lines 25–50
@OutputTimeUnit(TimeUnit.SECONDS)
public class DateFormatterBenchmark {
private static final String DATE_STRING = "Sun, 27 Nov 2016 19:18:46 GMT";
private static final Date DATE = new Date(784111777000L);
@Benchmark
public Date parseHttpHeaderDateFormatter() {
return DateFormatter.parseHttpDate(DATE_STRING);
}
@Benchmark
public Date parseHttpHeaderDateFormat() throws Exception {
return HttpHeaderDateFormat.get().parse(DATE_STRING);
}
@Benchmark
public String formatHttpHeaderDateFormatter() {
return DateFormatter.format(DATE);
}
@Benchmark
public String formatHttpHeaderDateFormat() throws Exception {
return HttpHeaderDateFormat.get().format(DATE);
}
}
Source
Frequently Asked Questions
What is the DateFormatterBenchmark class?
DateFormatterBenchmark is a class in the netty codebase, defined in microbench/src/main/java/io/netty/handler/codec/DateFormatterBenchmark.java.
Where is DateFormatterBenchmark defined?
DateFormatterBenchmark is defined in microbench/src/main/java/io/netty/handler/codec/DateFormatterBenchmark.java at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free