about summary refs log tree commit diff
path: root/library/core/benches/num
AgeCommit message (Collapse)AuthorLines
2025-01-26Put all coretests in a separate cratebjorn3-676/+0
2024-12-27Fix typoschloefeal-1/+1
Signed-off-by: chloefeal <188809157+chloefeal@users.noreply.github.com>
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-7/+7
2024-08-28Improve `isqrt` tests and add benchmarksChai T. Rex-0/+63
* Choose test inputs more thoroughly and systematically. * Check that `isqrt` and `checked_isqrt` have equivalent results for signed types, either equivalent numerically or equivalent as a panic and a `None`. * Check that `isqrt` has numerically-equivalent results for unsigned types and their `NonZero` counterparts. * Reuse `ilog10` benchmarks, plus benchmarks that use a uniform distribution.
2024-07-29Reformat `use` declarations.Nicholas Nethercote-4/+7
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-04-22Rollup merge of #115913 - FedericoStra:checked_ilog, r=the8472Guillaume Gomez-6/+73
checked_ilog: improve performance Addresses #115874. (This PR replicates the original #115875, which I accidentally closed by deleting my forked repository...)
2024-01-11Reduced amount of int_pow benchesNicholas Thompson-730/+43
Also simplified the macros
2024-01-11Edited int_pow micro-benchmarksNicholas Thompson-103/+339
2024-01-11Added int_pow micro-benchmarksNicholas Thompson-0/+551
2023-12-10remove redundant importssurechen-3/+0
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-09-22checked_ilog: add benchmarksFederico Stra-6/+73
2023-05-15Rollup merge of #108291 - chenyukang:yukang/fix-benchmarks, r=workingjubileeMatthias Krüger-18/+18
Fix more benchmark test with black_box Follow up fix for https://github.com/rust-lang/rust/issues/107590
2023-04-25Add shortcut for Grisu3 algorithm.mazong1123-0/+27
Check requested digit length and the fractional or integral parts of the number. Falls back earlier without trying the Grisu algorithm if the specific condition meets. Fix #110129
2023-02-21fix more benchmark test with black_boxyukang-18/+18
2023-02-03fix #107590, Fix benchmarks in library/core with black_boxyukang-18/+18
2023-01-04Update rand in the stdlib tests, and remove the getrandom feature from itThom Chiovoloni-2/+2
2022-08-09Rename integer log* methods to ilog*Eric Holk-3/+3
This reflects the concensus from the libs team as reported at https://github.com/rust-lang/rust/issues/70887#issuecomment-1209513261 Co-authored-by: Yosh Wuyts <github@yosh.is>
2022-05-02Avoid use of `rand::thread_rng` in stdlib benchmarksThom Chiovoloni-2/+2
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-2/+2
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2021-09-09Cosmetic fixes.Falk Hüffner-2/+0
2021-09-06Add benchmark for integer log10.Falk Hüffner-0/+61
2020-09-02flt2dec: properly handle uninitialized memoryRalf Jung-32/+66
2020-07-27mv std libs to library/mark-0/+326