-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Tests and initial work on ISO with negative years * Fix coptic division issue * fix test * add missing test Co-authored-by: Shane F. Carr <shane@unicode.org>
- Loading branch information
1 parent
06c3529
commit c33971f
Showing
7 changed files
with
164 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// This file is part of ICU4X. For terms of use, please see the file | ||
// called LICENSE at the top level of the ICU4X source tree | ||
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). | ||
|
||
use criterion::{black_box, criterion_group, criterion_main, Criterion}; | ||
use icu_calendar::{DateTime, Iso}; | ||
|
||
fn overview_bench(c: &mut Criterion) { | ||
c.bench_function("iso/from_minutes_since_local_unix_epoch", |b| { | ||
b.iter(|| { | ||
for i in -250..250 { | ||
let minutes = i * 10000; | ||
DateTime::<Iso>::from_minutes_since_local_unix_epoch(black_box(minutes)); | ||
} | ||
}); | ||
}); | ||
} | ||
|
||
criterion_group!(benches, overview_bench,); | ||
criterion_main!(benches); |
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
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
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
c33971f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'Rust Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.isize/larger
143409
ns/iter (± 1741
)66024
ns/iter (± 182
)2.17
This comment was automatically generated by workflow using github-action-benchmark.
CC: @sffc @zbraniecki @echeran