| 1 |
Common date formats: |
| 2 |
|
| 3 |
|
| 4 |
Date::Calc |
| 5 |
Date::Parse |
| 6 |
Date::Parser |
| 7 |
DateTime |
| 8 |
Time::ParseDate |
| 9 |
TimeDate (only a few hardcoded timezones) (does support languages) |
| 10 |
(does not do parsing of arbitrary dates) |
| 11 |
|
| 12 |
|
| 13 |
Parsing |
| 14 |
Calculations |
| 15 |
Business days |
| 16 |
Foreign parsing |
| 17 |
Recurrences |
| 18 |
Timezones |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
Parse 10,000 dates |
| 24 |
|
| 25 |
Date::Manip 5 8.6 sec |
| 26 |
Date::Manip 6 4.1 sec |
| 27 |
format 3.0 sec |
| 28 |
'no' opts 3.8 sec |
| 29 |
|
| 30 |
Date::Parse 0.6 sec handles multilingual dates |
| 31 |
limited number of formats |
| 32 |
active development |
| 33 |
Date::Time 0.7 sec (wrapper around Date::Parse) |
| 34 |
|
| 35 |
------------------- |
| 36 |
|
| 37 |
|
| 38 |
These files are used for running benchmarks and performance testing of Date::Manip. |
| 39 |
They are not generally useful, and are not installed anywhere. |
| 40 |
|
| 41 |
Date::Calc no parsing |
| 42 |
no timezones |
| 43 |
almost no time handling (primarily Y/M/D) |
| 44 |
|
| 45 |
Date::Pcalc same as Date::Calc |
| 46 |
|
| 47 |
TimeDate no calculations |
| 48 |
Date::Parse |
| 49 |
Time::Zone |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
DateTime |
| 55 |
DateTime-TimeZone |
| 56 |
DateTime-Format |
| 57 |
|
| 58 |
Date::Components |
| 59 |
|
| 60 |
Date::Handler |
| 61 |
|
| 62 |
Time::Format |
| 63 |
|
| 64 |
|
| 65 |
perl -d:NYTProf parse-1.dm.pl |
| 66 |
nytprofhtml |
| 67 |
|
| 68 |
============ |
| 69 |
|
| 70 |
time parse-1.dt.pl |
| 71 |
parse-1.dt.pl 0.51s user 0.01s system 83% cpu 0.626 total |
| 72 |
|
| 73 |
time ./parse-1.dm_no.pl |
| 74 |
./parse-1.dm_no.pl 3.36s user 0.01s system 100% cpu 3.366 total |
| 75 |
|
| 76 |
time ./parse-1.dm5.pl |
| 77 |
./parse-1.dm5.pl 6.21s user 0.03s system 100% cpu 6.233 total |
| 78 |
|
| 79 |
time ./parse-1.dm_fo.pl |
| 80 |
./parse-1.dm_fo.pl 5.09s user 0.03s system 99% cpu 5.123 total |
| 81 |
|
| 82 |
time ./parse-1.dm.pl |
| 83 |
./parse-1.dm.pl 3.64s user 0.04s system 99% cpu 3.706 total |
| 84 |
|
| 85 |
perl -d:NYTProf parse-1.dm6.pl |
| 86 |
nytprofhtml |
| 87 |
|
| 88 |
11323 613ms Date::::_parse_time Date::Manip::Date::_parse_time |
| 89 |
11323 442ms Date::::parse Date::Manip::Date::parse |
| 90 |
11324 419ms TZ::::date_period Date::Manip::TZ::date_period |
| 91 |
11323 399ms Date::::_parse_date_common Date::Manip::Date::_parse_date_common |
| 92 |
11323 378ms Date::::set Date::Manip::Date::set |
| 93 |
11324 298ms TZ::::_all_periods Date::Manip::TZ::_all_periods |
| 94 |
11323 248ms Date::::_parse_date Date::Manip::Date::_parse_date |
| 95 |
22646 233ms Base::::check Date::Manip::Base::check |
| 96 |
11323 207ms Date::::_parse_check Date::Manip::Date::_parse_check |
| 97 |
11323 174ms Date::::_parse_datetime_iso8601 Date::Manip::Date::_parse_datetime_iso8601 |
| 98 |
11324 163ms Base::::_now Date::Manip::Base::_now |
| 99 |
11323 162ms Date::::_parse_dow Date::Manip::Date::_parse_dow |
| 100 |
22646 159ms Base::::check_time Date::Manip::Base::check_time |
| 101 |
22662 158ms Base::::_is_int Date::Manip::Base::_is_int |
| 102 |
|
| 103 |
============== |
| 104 |
|
| 105 |
mkdir tz |
| 106 |
cd tz |
| 107 |
perl -d:NYTProf ../dm5dm6_ex3 6o ../dateset3.txt |
| 108 |
nytprofhtml |
| 109 |
|
| 110 |
cd .. |
| 111 |
mkdir notz |
| 112 |
cd notz |
| 113 |
perl -d:NYTProf ../dm5dm6_ex3 6o ../dateset3_notz.txt |
| 114 |
nytprofhtml |
| 115 |
|