Improve unix timestamp performance

pull/1475/head
Bogdan 2 years ago committed by Qstick
parent 0f11f414b6
commit 495f61f412

@ -24,6 +24,7 @@ namespace NzbDrone.Benchmark.Test.ParserTests
[Benchmark]
[Arguments("2022-08-08 02:07:39")]
[Arguments("1677173189")]
public void parse_unknown_date(string dateInput)
{
DateTimeUtil.FromUnknown(dateInput);
@ -31,6 +32,7 @@ namespace NzbDrone.Benchmark.Test.ParserTests
[Benchmark]
[Arguments("2022-08-08 02:07:39 -02:00", "2006-01-02 15:04:05 -07:00")]
[Arguments("2022-08-08 02:07:39 -02:00", "yyyy-MM-dd HH:mm:ss zzz")]
public void parse_datetime_golang(string dateInput, string format)
{
DateTimeUtil.ParseDateTimeGoLang(dateInput, format);

Loading…
Cancel
Save