-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fs): Cache data in stdinfs (#2288)
Signed-off-by: Dave Henderson <[email protected]>
- Loading branch information
1 parent
a69bb64
commit cd74bb8
Showing
2 changed files
with
85 additions
and
4 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
cd74bb8
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.
Benchmark
BenchmarkFlatten/depth-1_[]int([1_2_3])
167.9
ns/op 168 B/op 5 allocs/op165.7
ns/op 168 B/op 5 allocs/op1.01
BenchmarkFlatten/depth-1_[]int([1_2_3]) - ns/op
167.9
ns/op165.7
ns/op1.01
BenchmarkFlatten/depth-1_[]int([1_2_3]) - B/op
168
B/op168
B/op1
BenchmarkFlatten/depth-1_[]int([1_2_3]) - allocs/op
5
allocs/op5
allocs/op1
BenchmarkFlatten/depth-1_[3]int([1_2_3])
118.1
ns/op 144 B/op 2 allocs/op117.2
ns/op 144 B/op 2 allocs/op1.01
BenchmarkFlatten/depth-1_[3]int([1_2_3]) - ns/op
118.1
ns/op117.2
ns/op1.01
BenchmarkFlatten/depth-1_[3]int([1_2_3]) - B/op
144
B/op144
B/op1
BenchmarkFlatten/depth-1_[3]int([1_2_3]) - allocs/op
2
allocs/op2
allocs/op1
BenchmarkFlatten/depth-1_[]interface_{}([[]_[1_2]_3])
204.9
ns/op 208 B/op 5 allocs/op203.4
ns/op 208 B/op 5 allocs/op1.01
BenchmarkFlatten/depth-1_[]interface_{}([[]_[1_2]_3]) - ns/op
204.9
ns/op203.4
ns/op1.01
BenchmarkFlatten/depth-1_[]interface_{}([[]_[1_2]_3]) - B/op
208
B/op208
B/op1
BenchmarkFlatten/depth-1_[]interface_{}([[]_[1_2]_3]) - allocs/op
5
allocs/op5
allocs/op1
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[1_2]]_3])
414.4
ns/op 344 B/op 11 allocs/op422.8
ns/op 344 B/op 11 allocs/op0.98
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[1_2]]_3]) - ns/op
414.4
ns/op422.8
ns/op0.98
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[1_2]]_3]) - B/op
344
B/op344
B/op1
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[1_2]]_3]) - allocs/op
11
allocs/op11
allocs/op1
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6])
798.5
ns/op 896 B/op 19 allocs/op791.2
ns/op 896 B/op 19 allocs/op1.01
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - ns/op
798.5
ns/op791.2
ns/op1.01
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - B/op
896
B/op896
B/op1
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - allocs/op
19
allocs/op19
allocs/op1
BenchmarkFlatten/depth0_[]int([1_2_3])
114.5
ns/op 72 B/op 4 allocs/op114.2
ns/op 72 B/op 4 allocs/op1.00
BenchmarkFlatten/depth0_[]int([1_2_3]) - ns/op
114.5
ns/op114.2
ns/op1.00
BenchmarkFlatten/depth0_[]int([1_2_3]) - B/op
72
B/op72
B/op1
BenchmarkFlatten/depth0_[]int([1_2_3]) - allocs/op
4
allocs/op4
allocs/op1
BenchmarkFlatten/depth0_[3]int([1_2_3])
66.04
ns/op 48 B/op 1 allocs/op63.74
ns/op 48 B/op 1 allocs/op1.04
BenchmarkFlatten/depth0_[3]int([1_2_3]) - ns/op
66.04
ns/op63.74
ns/op1.04
BenchmarkFlatten/depth0_[3]int([1_2_3]) - B/op
48
B/op48
B/op1
BenchmarkFlatten/depth0_[3]int([1_2_3]) - allocs/op
1
allocs/op1
allocs/op1
BenchmarkFlatten/depth0_[]interface_{}([[]_[1_2]_3])
4.36
ns/op 0 B/op 0 allocs/op4.33
ns/op 0 B/op 0 allocs/op1.01
BenchmarkFlatten/depth0_[]interface_{}([[]_[1_2]_3]) - ns/op
4.36
ns/op4.33
ns/op1.01
BenchmarkFlatten/depth0_[]interface_{}([[]_[1_2]_3]) - B/op
0
B/op0
B/op1
BenchmarkFlatten/depth0_[]interface_{}([[]_[1_2]_3]) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[1_2]]_3])
4.379
ns/op 0 B/op 0 allocs/op4.442
ns/op 0 B/op 0 allocs/op0.99
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[1_2]]_3]) - ns/op
4.379
ns/op4.442
ns/op0.99
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[1_2]]_3]) - B/op
0
B/op0
B/op1
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[1_2]]_3]) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6])
4.333
ns/op 0 B/op 0 allocs/op4.301
ns/op 0 B/op 0 allocs/op1.01
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - ns/op
4.333
ns/op4.301
ns/op1.01
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - B/op
0
B/op0
B/op1
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkFlatten/depth1_[]int([1_2_3])
167.1
ns/op 168 B/op 5 allocs/op166.1
ns/op 168 B/op 5 allocs/op1.01
BenchmarkFlatten/depth1_[]int([1_2_3]) - ns/op
167.1
ns/op166.1
ns/op1.01
BenchmarkFlatten/depth1_[]int([1_2_3]) - B/op
168
B/op168
B/op1
BenchmarkFlatten/depth1_[]int([1_2_3]) - allocs/op
5
allocs/op5
allocs/op1
BenchmarkFlatten/depth1_[3]int([1_2_3])
117.7
ns/op 144 B/op 2 allocs/op116.9
ns/op 144 B/op 2 allocs/op1.01
BenchmarkFlatten/depth1_[3]int([1_2_3]) - ns/op
117.7
ns/op116.9
ns/op1.01
BenchmarkFlatten/depth1_[3]int([1_2_3]) - B/op
144
B/op144
B/op1
BenchmarkFlatten/depth1_[3]int([1_2_3]) - allocs/op
2
allocs/op2
allocs/op1
BenchmarkFlatten/depth1_[]interface_{}([[]_[1_2]_3])
159.2
ns/op 144 B/op 4 allocs/op157.9
ns/op 144 B/op 4 allocs/op1.01
BenchmarkFlatten/depth1_[]interface_{}([[]_[1_2]_3]) - ns/op
159.2
ns/op157.9
ns/op1.01
BenchmarkFlatten/depth1_[]interface_{}([[]_[1_2]_3]) - B/op
144
B/op144
B/op1
BenchmarkFlatten/depth1_[]interface_{}([[]_[1_2]_3]) - allocs/op
4
allocs/op4
allocs/op1
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[1_2]]_3])
213.3
ns/op 168 B/op 5 allocs/op210.8
ns/op 168 B/op 5 allocs/op1.01
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[1_2]]_3]) - ns/op
213.3
ns/op210.8
ns/op1.01
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[1_2]]_3]) - B/op
168
B/op168
B/op1
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[1_2]]_3]) - allocs/op
5
allocs/op5
allocs/op1
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6])
143.5
ns/op 128 B/op 3 allocs/op140.6
ns/op 128 B/op 3 allocs/op1.02
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - ns/op
143.5
ns/op140.6
ns/op1.02
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - B/op
128
B/op128
B/op1
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkFlatten/depth2_[]int([1_2_3])
171.8
ns/op 168 B/op 5 allocs/op166.3
ns/op 168 B/op 5 allocs/op1.03
BenchmarkFlatten/depth2_[]int([1_2_3]) - ns/op
171.8
ns/op166.3
ns/op1.03
BenchmarkFlatten/depth2_[]int([1_2_3]) - B/op
168
B/op168
B/op1
BenchmarkFlatten/depth2_[]int([1_2_3]) - allocs/op
5
allocs/op5
allocs/op1
BenchmarkFlatten/depth2_[3]int([1_2_3])
118.2
ns/op 144 B/op 2 allocs/op116.9
ns/op 144 B/op 2 allocs/op1.01
BenchmarkFlatten/depth2_[3]int([1_2_3]) - ns/op
118.2
ns/op116.9
ns/op1.01
BenchmarkFlatten/depth2_[3]int([1_2_3]) - B/op
144
B/op144
B/op1
BenchmarkFlatten/depth2_[3]int([1_2_3]) - allocs/op
2
allocs/op2
allocs/op1
BenchmarkFlatten/depth2_[]interface_{}([[]_[1_2]_3])
208.4
ns/op 208 B/op 5 allocs/op203.9
ns/op 208 B/op 5 allocs/op1.02
BenchmarkFlatten/depth2_[]interface_{}([[]_[1_2]_3]) - ns/op
208.4
ns/op203.9
ns/op1.02
BenchmarkFlatten/depth2_[]interface_{}([[]_[1_2]_3]) - B/op
208
B/op208
B/op1
BenchmarkFlatten/depth2_[]interface_{}([[]_[1_2]_3]) - allocs/op
5
allocs/op5
allocs/op1
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[1_2]]_3])
372.9
ns/op 280 B/op 10 allocs/op368.6
ns/op 280 B/op 10 allocs/op1.01
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[1_2]]_3]) - ns/op
372.9
ns/op368.6
ns/op1.01
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[1_2]]_3]) - B/op
280
B/op280
B/op1
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[1_2]]_3]) - allocs/op
10
allocs/op10
allocs/op1
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6])
325.7
ns/op 272 B/op 8 allocs/op324.6
ns/op 272 B/op 8 allocs/op1.00
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - ns/op
325.7
ns/op324.6
ns/op1.00
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - B/op
272
B/op272
B/op1
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - allocs/op
8
allocs/op8
allocs/op1
BenchmarkInterfaceSlice/[]int([1_2_3])
118.2
ns/op 72 B/op 4 allocs/op112.6
ns/op 72 B/op 4 allocs/op1.05
BenchmarkInterfaceSlice/[]int([1_2_3]) - ns/op
118.2
ns/op112.6
ns/op1.05
BenchmarkInterfaceSlice/[]int([1_2_3]) - B/op
72
B/op72
B/op1
BenchmarkInterfaceSlice/[]int([1_2_3]) - allocs/op
4
allocs/op4
allocs/op1
BenchmarkInterfaceSlice/[3]int([1_2_3])
60.41
ns/op 48 B/op 1 allocs/op60.15
ns/op 48 B/op 1 allocs/op1.00
BenchmarkInterfaceSlice/[3]int([1_2_3]) - ns/op
60.41
ns/op60.15
ns/op1.00
BenchmarkInterfaceSlice/[3]int([1_2_3]) - B/op
48
B/op48
B/op1
BenchmarkInterfaceSlice/[3]int([1_2_3]) - allocs/op
1
allocs/op1
allocs/op1
BenchmarkInterfaceSlice/[]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz])
539
ns/op 384 B/op 13 allocs/op536.3
ns/op 384 B/op 13 allocs/op1.01
BenchmarkInterfaceSlice/[]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - ns/op
539
ns/op536.3
ns/op1.01
BenchmarkInterfaceSlice/[]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - B/op
384
B/op384
B/op1
BenchmarkInterfaceSlice/[]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - allocs/op
13
allocs/op13
allocs/op1
BenchmarkInterfaceSlice/[12]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz])
153.4
ns/op 192 B/op 1 allocs/op152.9
ns/op 192 B/op 1 allocs/op1.00
BenchmarkInterfaceSlice/[12]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - ns/op
153.4
ns/op152.9
ns/op1.00
BenchmarkInterfaceSlice/[12]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - B/op
192
B/op192
B/op1
BenchmarkInterfaceSlice/[12]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - allocs/op
1
allocs/op1
allocs/op1
BenchmarkInterfaceSlice/[]interface_{}([[]_[1_2]_3])
2.207
ns/op 0 B/op 0 allocs/op2.202
ns/op 0 B/op 0 allocs/op1.00
BenchmarkInterfaceSlice/[]interface_{}([[]_[1_2]_3]) - ns/op
2.207
ns/op2.202
ns/op1.00
BenchmarkInterfaceSlice/[]interface_{}([[]_[1_2]_3]) - B/op
0
B/op0
B/op1
BenchmarkInterfaceSlice/[]interface_{}([[]_[1_2]_3]) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkInterfaceSlice/[3]interface_{}([[]_[1_2]_3])
63.35
ns/op 48 B/op 1 allocs/op63.17
ns/op 48 B/op 1 allocs/op1.00
BenchmarkInterfaceSlice/[3]interface_{}([[]_[1_2]_3]) - ns/op
63.35
ns/op63.17
ns/op1.00
BenchmarkInterfaceSlice/[3]interface_{}([[]_[1_2]_3]) - B/op
48
B/op48
B/op1
BenchmarkInterfaceSlice/[3]interface_{}([[]_[1_2]_3]) - allocs/op
1
allocs/op1
allocs/op1
BenchmarkToBytes
1044
ns/op 40 B/op 3 allocs/op1125
ns/op 40 B/op 3 allocs/op0.93
BenchmarkToBytes - ns/op
1044
ns/op1125
ns/op0.93
BenchmarkToBytes - B/op
40
B/op40
B/op1
BenchmarkToBytes - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/int(0)
3.101
ns/op 0 B/op 0 allocs/op3.178
ns/op 0 B/op 0 allocs/op0.98
BenchmarkIsFloat/int(0) - ns/op
3.101
ns/op3.178
ns/op0.98
BenchmarkIsFloat/int(0) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int(0) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int(1)
3.125
ns/op 0 B/op 0 allocs/op3.102
ns/op 0 B/op 0 allocs/op1.01
BenchmarkIsFloat/int(1) - ns/op
3.125
ns/op3.102
ns/op1.01
BenchmarkIsFloat/int(1) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int(1) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int(-1)
3.103
ns/op 0 B/op 0 allocs/op3.135
ns/op 0 B/op 0 allocs/op0.99
BenchmarkIsFloat/int(-1) - ns/op
3.103
ns/op3.135
ns/op0.99
BenchmarkIsFloat/int(-1) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int(-1) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/uint(42)
3.097
ns/op 0 B/op 0 allocs/op3.097
ns/op 0 B/op 0 allocs/op1
BenchmarkIsFloat/uint(42) - ns/op
3.097
ns/op3.097
ns/op1
BenchmarkIsFloat/uint(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/uint(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/uint8(255)
3.1
ns/op 0 B/op 0 allocs/op3.097
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/uint8(255) - ns/op
3.1
ns/op3.097
ns/op1.00
BenchmarkIsFloat/uint8(255) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/uint8(255) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/uint16(42)
3.099
ns/op 0 B/op 0 allocs/op3.102
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/uint16(42) - ns/op
3.099
ns/op3.102
ns/op1.00
BenchmarkIsFloat/uint16(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/uint16(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/uint32(42)
3.102
ns/op 0 B/op 0 allocs/op3.096
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/uint32(42) - ns/op
3.102
ns/op3.096
ns/op1.00
BenchmarkIsFloat/uint32(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/uint32(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/uint64(42)
3.118
ns/op 0 B/op 0 allocs/op3.101
ns/op 0 B/op 0 allocs/op1.01
BenchmarkIsFloat/uint64(42) - ns/op
3.118
ns/op3.101
ns/op1.01
BenchmarkIsFloat/uint64(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/uint64(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int(42)
3.094
ns/op 0 B/op 0 allocs/op3.101
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/int(42) - ns/op
3.094
ns/op3.101
ns/op1.00
BenchmarkIsFloat/int(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int8(127)
3.1
ns/op 0 B/op 0 allocs/op3.096
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/int8(127) - ns/op
3.1
ns/op3.096
ns/op1.00
BenchmarkIsFloat/int8(127) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int8(127) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int16(42)
3.101
ns/op 0 B/op 0 allocs/op3.102
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/int16(42) - ns/op
3.101
ns/op3.102
ns/op1.00
BenchmarkIsFloat/int16(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int16(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int32(42)
3.097
ns/op 0 B/op 0 allocs/op3.094
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/int32(42) - ns/op
3.097
ns/op3.094
ns/op1.00
BenchmarkIsFloat/int32(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int32(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/int64(42)
3.096
ns/op 0 B/op 0 allocs/op3.1
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/int64(42) - ns/op
3.096
ns/op3.1
ns/op1.00
BenchmarkIsFloat/int64(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/int64(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/float32(18.3)
2.479
ns/op 0 B/op 0 allocs/op2.786
ns/op 0 B/op 0 allocs/op0.89
BenchmarkIsFloat/float32(18.3) - ns/op
2.479
ns/op2.786
ns/op0.89
BenchmarkIsFloat/float32(18.3) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/float32(18.3) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/float64(18.3)
2.787
ns/op 0 B/op 0 allocs/op2.792
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/float64(18.3) - ns/op
2.787
ns/op2.792
ns/op1.00
BenchmarkIsFloat/float64(18.3) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/float64(18.3) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/float64(1.5)
2.789
ns/op 0 B/op 0 allocs/op2.786
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/float64(1.5) - ns/op
2.789
ns/op2.786
ns/op1.00
BenchmarkIsFloat/float64(1.5) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/float64(1.5) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/float64(-18.6)
2.787
ns/op 0 B/op 0 allocs/op2.789
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/float64(-18.6) - ns/op
2.787
ns/op2.789
ns/op1.00
BenchmarkIsFloat/float64(-18.6) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/float64(-18.6) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/string(42)
34.09
ns/op 0 B/op 0 allocs/op34.1
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/string(42) - ns/op
34.09
ns/op34.1
ns/op1.00
BenchmarkIsFloat/string(42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/string(42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/string(052)
38.13
ns/op 0 B/op 0 allocs/op38.08
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/string(052) - ns/op
38.13
ns/op38.08
ns/op1.00
BenchmarkIsFloat/string(052) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/string(052) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/string(0xff)
72.31
ns/op 52 B/op 2 allocs/op72.28
ns/op 52 B/op 2 allocs/op1.00
BenchmarkIsFloat/string(0xff) - ns/op
72.31
ns/op72.28
ns/op1.00
BenchmarkIsFloat/string(0xff) - B/op
52
B/op52
B/op1
BenchmarkIsFloat/string(0xff) - allocs/op
2
allocs/op2
allocs/op1
BenchmarkIsFloat/string(-42)
35.64
ns/op 0 B/op 0 allocs/op35.95
ns/op 0 B/op 0 allocs/op0.99
BenchmarkIsFloat/string(-42) - ns/op
35.64
ns/op35.95
ns/op0.99
BenchmarkIsFloat/string(-42) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/string(-42) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/string(-0)
32.63
ns/op 0 B/op 0 allocs/op32.63
ns/op 0 B/op 0 allocs/op1
BenchmarkIsFloat/string(-0) - ns/op
32.63
ns/op32.63
ns/op1
BenchmarkIsFloat/string(-0) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/string(-0) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkIsFloat/string(3.14)
104.4
ns/op 56 B/op 3 allocs/op105.3
ns/op 56 B/op 3 allocs/op0.99
BenchmarkIsFloat/string(3.14) - ns/op
104.4
ns/op105.3
ns/op0.99
BenchmarkIsFloat/string(3.14) - B/op
56
B/op56
B/op1
BenchmarkIsFloat/string(3.14) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/string(-3.14)
112.1
ns/op 64 B/op 3 allocs/op112.2
ns/op 64 B/op 3 allocs/op1.00
BenchmarkIsFloat/string(-3.14) - ns/op
112.1
ns/op112.2
ns/op1.00
BenchmarkIsFloat/string(-3.14) - B/op
64
B/op64
B/op1
BenchmarkIsFloat/string(-3.14) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/string(0.00)
105.2
ns/op 56 B/op 3 allocs/op105.8
ns/op 56 B/op 3 allocs/op0.99
BenchmarkIsFloat/string(0.00) - ns/op
105.2
ns/op105.8
ns/op0.99
BenchmarkIsFloat/string(0.00) - B/op
56
B/op56
B/op1
BenchmarkIsFloat/string(0.00) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/string(NaN)
91.91
ns/op 54 B/op 3 allocs/op93.86
ns/op 54 B/op 3 allocs/op0.98
BenchmarkIsFloat/string(NaN) - ns/op
91.91
ns/op93.86
ns/op0.98
BenchmarkIsFloat/string(NaN) - B/op
54
B/op54
B/op1
BenchmarkIsFloat/string(NaN) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/string(-Inf)
90.68
ns/op 56 B/op 3 allocs/op92.49
ns/op 56 B/op 3 allocs/op0.98
BenchmarkIsFloat/string(-Inf) - ns/op
90.68
ns/op92.49
ns/op0.98
BenchmarkIsFloat/string(-Inf) - B/op
56
B/op56
B/op1
BenchmarkIsFloat/string(-Inf) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/string(+Inf)
90.79
ns/op 56 B/op 3 allocs/op93.17
ns/op 56 B/op 3 allocs/op0.97
BenchmarkIsFloat/string(+Inf) - ns/op
90.79
ns/op93.17
ns/op0.97
BenchmarkIsFloat/string(+Inf) - B/op
56
B/op56
B/op1
BenchmarkIsFloat/string(+Inf) - allocs/op
3
allocs/op3
allocs/op1
BenchmarkIsFloat/string()
49.95
ns/op 48 B/op 1 allocs/op49.84
ns/op 48 B/op 1 allocs/op1.00
BenchmarkIsFloat/string() - ns/op
49.95
ns/op49.84
ns/op1.00
BenchmarkIsFloat/string() - B/op
48
B/op48
B/op1
BenchmarkIsFloat/string() - allocs/op
1
allocs/op1
allocs/op1
BenchmarkIsFloat/string(foo)
72.34
ns/op 51 B/op 2 allocs/op69.53
ns/op 51 B/op 2 allocs/op1.04
BenchmarkIsFloat/string(foo) - ns/op
72.34
ns/op69.53
ns/op1.04
BenchmarkIsFloat/string(foo) - B/op
51
B/op51
B/op1
BenchmarkIsFloat/string(foo) - allocs/op
2
allocs/op2
allocs/op1
BenchmarkIsFloat/bool(true)
3.1
ns/op 0 B/op 0 allocs/op3.097
ns/op 0 B/op 0 allocs/op1.00
BenchmarkIsFloat/bool(true) - ns/op
3.1
ns/op3.097
ns/op1.00
BenchmarkIsFloat/bool(true) - B/op
0
B/op0
B/op1
BenchmarkIsFloat/bool(true) - allocs/op
0
allocs/op0
allocs/op1
BenchmarkLookupIPs
48870
ns/op 1840 B/op 44 allocs/op50737
ns/op 1840 B/op 44 allocs/op0.96
BenchmarkLookupIPs - ns/op
48870
ns/op50737
ns/op0.96
BenchmarkLookupIPs - B/op
1840
B/op1840
B/op1
BenchmarkLookupIPs - allocs/op
44
allocs/op44
allocs/op1
BenchmarkIndent
2023
ns/op 2064 B/op 20 allocs/op1946
ns/op 2064 B/op 20 allocs/op1.04
BenchmarkIndent - ns/op
2023
ns/op1946
ns/op1.04
BenchmarkIndent - B/op
2064
B/op2064
B/op1
BenchmarkIndent - allocs/op
20
allocs/op20
allocs/op1
This comment was automatically generated by workflow using github-action-benchmark.