File tree Expand file tree Collapse file tree 6 files changed +23
-13
lines changed
Expand file tree Collapse file tree 6 files changed +23
-13
lines changed Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ # [ # 0.2.2 (2020-12-16)] ( https://github.com/boa-dev/ryu-js/compare/v0.2.1...v0.2.2 )
4+
5+ Internal improvements:
6+
7+ - [ INTERNAL #17 ] ( https://github.com/boa-dev/ryu-js/pull/17 ) Sync to ` dtolnay/ryu ` master
8+ - [ INTERNAL #16 ] ( https://github.com/boa-dev/ryu-js/pull/16 ) Sync to ` dtolnay/ryu ` master
9+
310# [ # 0.2.1 (2020-11-11)] ( https://github.com/boa-dev/ryu-js/compare/v0.2.0...v0.2.1 )
411
512Feature enhancements:
Original file line number Diff line number Diff line change 11[package ]
22name = " ryu-js"
3- version = " 0.2.1 " # don't forget to update html_root_url
3+ version = " 0.2.2 " # don't forget to update html_root_url
44authors = [" David Tolnay <dtolnay@gmail.com>" , " boa-dev" ]
55license = " Apache-2.0 OR BSL-1.0"
66description = " Fast floating point to string conversion, ECMAScript compliant."
Original file line number Diff line number Diff line change 11# Ryū-js
22
33Ryū-js is a fork of the [ ryu] [ ryu-crate ] crate adjusted to comply to the ECMAScript [ number-to-string] [ number-to-string ] algorithm.
4- This crate is used in the [ boa] [ boa-crate ] crate for number to string conversions.
54
65[ ryu-crate ] : https://crates.io/crates/ryu
7- [ boa-crate ] : https://crates.io/crates/Boa
86[ number-to-string ] : https://tc39.es/ecma262/#sec-numeric-types-number-tostring
97
108Pure Rust implementation of Ryū, an algorithm to quickly convert floating point
@@ -42,10 +40,16 @@ fn main() {
4240
4341<br >
4442
43+ ## Performance
44+
45+ <!--
46+
4547## Performance (lower is better)
4648
4749
4850
51+ -->
52+
4953You can run upstream's benchmarks with:
5054
5155``` console
Original file line number Diff line number Diff line change @@ -51,12 +51,12 @@ macro_rules! benches {
5151}
5252
5353benches ! {
54- bench_0_f64( 0f64 ) ,
55- bench_short_f64( 0.1234f64 ) ,
56- bench_e_f64( 2.718281828459045f64 ) ,
54+ bench_0_f64( 0_f64 ) ,
55+ bench_short_f64( 0.1234_f64 ) ,
56+ bench_e_f64( 2.718281828459045_f64 ) ,
5757 bench_max_f64( f64 :: MAX ) ,
58- bench_0_f32( 0f32 ) ,
59- bench_short_f32( 0.1234f32 ) ,
60- bench_e_f32( 2.718281828459045f32 ) ,
58+ bench_0_f32( 0_f32 ) ,
59+ bench_short_f32( 0.1234_f32 ) ,
60+ bench_e_f32( 2.718281828459045_f32 ) ,
6161 bench_max_f32( f32 :: MAX ) ,
6262}
Original file line number Diff line number Diff line change 2121//! }
2222//! ```
2323//!
24- //! ## Performance (lower is better)
25- //!
26- //! 
24+ //! ## Performance
2725//!
2826//! The benchmarks measure the average time to print a 32-bit float and average
2927//! time to print a 64-bit float, where the inputs are distributed as uniform random
5755//! notation.
5856
5957#![ no_std]
60- #![ doc( html_root_url = "https://docs.rs/ryu-js/0.2.1 " ) ]
58+ #![ doc( html_root_url = "https://docs.rs/ryu-js/0.2.2 " ) ]
6159#![ allow(
6260 clippy:: cast_lossless,
6361 clippy:: cast_possible_truncation,
Original file line number Diff line number Diff line change 2020
2121#![ allow(
2222 clippy:: approx_constant,
23+ clippy:: excessive_precision,
2324 clippy:: cast_lossless,
2425 clippy:: float_cmp,
2526 clippy:: int_plus_one,
You can’t perform that action at this time.
0 commit comments