-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
494 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Project Dependencies | ||
Package: utc2k | ||
Version: 0.8.1 | ||
Generated: 2024-07-25 17:27:43 UTC | ||
Version: 0.9.0 | ||
Generated: 2024-08-04 05:04:32 UTC | ||
|
||
This package has no dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[package] | ||
name = "utc2k" | ||
version = "0.8.1" | ||
version = "0.9.0" | ||
authors = ["Blobfolio, LLC. <[email protected]>"] | ||
edition = "2021" | ||
rust-version = "1.70" | ||
rust-version = "1.80" | ||
description = "A fast and lean UTC date/time library concerned only with happenings in this century (2000-2099)." | ||
license = "WTFPL" | ||
repository = "https://github.com/Blobfolio/utc2k" | ||
|
@@ -69,6 +69,10 @@ harness = false | |
name = "d_fmtutc2k" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "d_weekmonth" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "d_local" | ||
harness = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*! | ||
# Benchmark: Weekdays and Months. | ||
*/ | ||
|
||
use brunch::{ | ||
Bench, | ||
benches, | ||
}; | ||
use utc2k::{ | ||
Weekday, | ||
Month, | ||
}; | ||
|
||
|
||
|
||
benches!( | ||
Bench::new("utc2k::Weekday::try_from(sat)") | ||
.run(|| Weekday::try_from("sat")), | ||
|
||
Bench::new("utc2k::Weekday::try_from(Saturday)") | ||
.run(|| Weekday::try_from("Saturday")), | ||
|
||
Bench::spacer(), | ||
|
||
Bench::new("utc2k::Month::try_from(jun)") | ||
.run(|| Month::try_from("jun")), | ||
|
||
Bench::new("utc2k::Month::try_from(June)") | ||
.run(|| Month::try_from("June")), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.