Optimize high_prec_dec__round_just_enough

name                                                               old time/op  new time/op  delta
wuffs_strconv_render_number_f64_just_enough_fractions/clang5       56.4µs ± 1%  56.3µs ± 1%     ~     (p=1.000 n=5+5)
wuffs_strconv_render_number_f64_just_enough_small_integers/clang5  4.12µs ± 2%  1.00µs ± 1%  -75.65%  (p=0.008 n=5+5)
wuffs_strconv_render_number_f64_just_enough_fractions/gcc7         54.3µs ± 0%  54.2µs ± 0%     ~     (p=0.151 n=5+5)
wuffs_strconv_render_number_f64_just_enough_small_integers/gcc7    4.16µs ± 0%  1.01µs ± 0%  -75.77%  (p=0.000 n=4+5)
This commit is contained in:
Nigel Tao committed 2020-07-03 23:44:37 +10:00
1 parent 58678cb342
commit 19b3ce24a3
5 files changed
+35 -11

No files matched your search

+2
View File
@@ -160,6 +160,8 @@ var u64TestCases = []uint64{
0x4330000000000000,
0x4330000000000001,
0x4330000000000002,
0x433FFFFFFFFFFFFE,
0x433FFFFFFFFFFFFF,
0x4340000000000000,
0x4340000000000001,
0x4340000000000002,