-
-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(fs): Cache data in stdinfs #2288
Merged
Merged
Conversation
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
Signed-off-by: Dave Henderson <[email protected]>
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
Benchmark suite | Current: a0380aa | Previous: 66fd58b | Ratio |
---|---|---|---|
BenchmarkFlatten/depth-1_[]int([1_2_3]) |
167.1 ns/op 168 B/op 5 allocs/op |
165.7 ns/op 168 B/op 5 allocs/op |
1.01 |
BenchmarkFlatten/depth-1_[]int([1_2_3]) - ns/op |
167.1 ns/op |
165.7 ns/op |
1.01 |
BenchmarkFlatten/depth-1_[]int([1_2_3]) - B/op |
168 B/op |
168 B/op |
1 |
BenchmarkFlatten/depth-1_[]int([1_2_3]) - allocs/op |
5 allocs/op |
5 allocs/op |
1 |
BenchmarkFlatten/depth-1_[3]int([1_2_3]) |
118.1 ns/op 144 B/op 2 allocs/op |
117.2 ns/op 144 B/op 2 allocs/op |
1.01 |
BenchmarkFlatten/depth-1_[3]int([1_2_3]) - ns/op |
118.1 ns/op |
117.2 ns/op |
1.01 |
BenchmarkFlatten/depth-1_[3]int([1_2_3]) - B/op |
144 B/op |
144 B/op |
1 |
BenchmarkFlatten/depth-1_[3]int([1_2_3]) - allocs/op |
2 allocs/op |
2 allocs/op |
1 |
BenchmarkFlatten/depth-1_[]interface_{}([[]_[1_2]_3]) |
204.1 ns/op 208 B/op 5 allocs/op |
203.4 ns/op 208 B/op 5 allocs/op |
1.00 |
BenchmarkFlatten/depth-1_[]interface_{}([[]_[1_2]_3]) - ns/op |
204.1 ns/op |
203.4 ns/op |
1.00 |
BenchmarkFlatten/depth-1_[]interface_{}([[]_[1_2]_3]) - B/op |
208 B/op |
208 B/op |
1 |
BenchmarkFlatten/depth-1_[]interface_{}([[]_[1_2]_3]) - allocs/op |
5 allocs/op |
5 allocs/op |
1 |
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[1_2]]_3]) |
413.2 ns/op 344 B/op 11 allocs/op |
422.8 ns/op 344 B/op 11 allocs/op |
0.98 |
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[1_2]]_3]) - ns/op |
413.2 ns/op |
422.8 ns/op |
0.98 |
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[1_2]]_3]) - B/op |
344 B/op |
344 B/op |
1 |
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[1_2]]_3]) - allocs/op |
11 allocs/op |
11 allocs/op |
1 |
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) |
796.4 ns/op 896 B/op 19 allocs/op |
791.2 ns/op 896 B/op 19 allocs/op |
1.01 |
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - ns/op |
796.4 ns/op |
791.2 ns/op |
1.01 |
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - B/op |
896 B/op |
896 B/op |
1 |
BenchmarkFlatten/depth-1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - allocs/op |
19 allocs/op |
19 allocs/op |
1 |
BenchmarkFlatten/depth0_[]int([1_2_3]) |
115.6 ns/op 72 B/op 4 allocs/op |
114.2 ns/op 72 B/op 4 allocs/op |
1.01 |
BenchmarkFlatten/depth0_[]int([1_2_3]) - ns/op |
115.6 ns/op |
114.2 ns/op |
1.01 |
BenchmarkFlatten/depth0_[]int([1_2_3]) - B/op |
72 B/op |
72 B/op |
1 |
BenchmarkFlatten/depth0_[]int([1_2_3]) - allocs/op |
4 allocs/op |
4 allocs/op |
1 |
BenchmarkFlatten/depth0_[3]int([1_2_3]) |
66.14 ns/op 48 B/op 1 allocs/op |
63.74 ns/op 48 B/op 1 allocs/op |
1.04 |
BenchmarkFlatten/depth0_[3]int([1_2_3]) - ns/op |
66.14 ns/op |
63.74 ns/op |
1.04 |
BenchmarkFlatten/depth0_[3]int([1_2_3]) - B/op |
48 B/op |
48 B/op |
1 |
BenchmarkFlatten/depth0_[3]int([1_2_3]) - allocs/op |
1 allocs/op |
1 allocs/op |
1 |
BenchmarkFlatten/depth0_[]interface_{}([[]_[1_2]_3]) |
4.33 ns/op 0 B/op 0 allocs/op |
4.33 ns/op 0 B/op 0 allocs/op |
1 |
BenchmarkFlatten/depth0_[]interface_{}([[]_[1_2]_3]) - ns/op |
4.33 ns/op |
4.33 ns/op |
1 |
BenchmarkFlatten/depth0_[]interface_{}([[]_[1_2]_3]) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkFlatten/depth0_[]interface_{}([[]_[1_2]_3]) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[1_2]]_3]) |
4.502 ns/op 0 B/op 0 allocs/op |
4.442 ns/op 0 B/op 0 allocs/op |
1.01 |
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[1_2]]_3]) - ns/op |
4.502 ns/op |
4.442 ns/op |
1.01 |
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[1_2]]_3]) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[1_2]]_3]) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) |
4.336 ns/op 0 B/op 0 allocs/op |
4.301 ns/op 0 B/op 0 allocs/op |
1.01 |
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - ns/op |
4.336 ns/op |
4.301 ns/op |
1.01 |
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkFlatten/depth0_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkFlatten/depth1_[]int([1_2_3]) |
166.7 ns/op 168 B/op 5 allocs/op |
166.1 ns/op 168 B/op 5 allocs/op |
1.00 |
BenchmarkFlatten/depth1_[]int([1_2_3]) - ns/op |
166.7 ns/op |
166.1 ns/op |
1.00 |
BenchmarkFlatten/depth1_[]int([1_2_3]) - B/op |
168 B/op |
168 B/op |
1 |
BenchmarkFlatten/depth1_[]int([1_2_3]) - allocs/op |
5 allocs/op |
5 allocs/op |
1 |
BenchmarkFlatten/depth1_[3]int([1_2_3]) |
118.3 ns/op 144 B/op 2 allocs/op |
116.9 ns/op 144 B/op 2 allocs/op |
1.01 |
BenchmarkFlatten/depth1_[3]int([1_2_3]) - ns/op |
118.3 ns/op |
116.9 ns/op |
1.01 |
BenchmarkFlatten/depth1_[3]int([1_2_3]) - B/op |
144 B/op |
144 B/op |
1 |
BenchmarkFlatten/depth1_[3]int([1_2_3]) - allocs/op |
2 allocs/op |
2 allocs/op |
1 |
BenchmarkFlatten/depth1_[]interface_{}([[]_[1_2]_3]) |
159.4 ns/op 144 B/op 4 allocs/op |
157.9 ns/op 144 B/op 4 allocs/op |
1.01 |
BenchmarkFlatten/depth1_[]interface_{}([[]_[1_2]_3]) - ns/op |
159.4 ns/op |
157.9 ns/op |
1.01 |
BenchmarkFlatten/depth1_[]interface_{}([[]_[1_2]_3]) - B/op |
144 B/op |
144 B/op |
1 |
BenchmarkFlatten/depth1_[]interface_{}([[]_[1_2]_3]) - allocs/op |
4 allocs/op |
4 allocs/op |
1 |
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[1_2]]_3]) |
211.8 ns/op 168 B/op 5 allocs/op |
210.8 ns/op 168 B/op 5 allocs/op |
1.00 |
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[1_2]]_3]) - ns/op |
211.8 ns/op |
210.8 ns/op |
1.00 |
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[1_2]]_3]) - B/op |
168 B/op |
168 B/op |
1 |
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[1_2]]_3]) - allocs/op |
5 allocs/op |
5 allocs/op |
1 |
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) |
141.5 ns/op 128 B/op 3 allocs/op |
140.6 ns/op 128 B/op 3 allocs/op |
1.01 |
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - ns/op |
141.5 ns/op |
140.6 ns/op |
1.01 |
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - B/op |
128 B/op |
128 B/op |
1 |
BenchmarkFlatten/depth1_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - allocs/op |
3 allocs/op |
3 allocs/op |
1 |
BenchmarkFlatten/depth2_[]int([1_2_3]) |
167.9 ns/op 168 B/op 5 allocs/op |
166.3 ns/op 168 B/op 5 allocs/op |
1.01 |
BenchmarkFlatten/depth2_[]int([1_2_3]) - ns/op |
167.9 ns/op |
166.3 ns/op |
1.01 |
BenchmarkFlatten/depth2_[]int([1_2_3]) - B/op |
168 B/op |
168 B/op |
1 |
BenchmarkFlatten/depth2_[]int([1_2_3]) - allocs/op |
5 allocs/op |
5 allocs/op |
1 |
BenchmarkFlatten/depth2_[3]int([1_2_3]) |
119 ns/op 144 B/op 2 allocs/op |
116.9 ns/op 144 B/op 2 allocs/op |
1.02 |
BenchmarkFlatten/depth2_[3]int([1_2_3]) - ns/op |
119 ns/op |
116.9 ns/op |
1.02 |
BenchmarkFlatten/depth2_[3]int([1_2_3]) - B/op |
144 B/op |
144 B/op |
1 |
BenchmarkFlatten/depth2_[3]int([1_2_3]) - allocs/op |
2 allocs/op |
2 allocs/op |
1 |
BenchmarkFlatten/depth2_[]interface_{}([[]_[1_2]_3]) |
204 ns/op 208 B/op 5 allocs/op |
203.9 ns/op 208 B/op 5 allocs/op |
1.00 |
BenchmarkFlatten/depth2_[]interface_{}([[]_[1_2]_3]) - ns/op |
204 ns/op |
203.9 ns/op |
1.00 |
BenchmarkFlatten/depth2_[]interface_{}([[]_[1_2]_3]) - B/op |
208 B/op |
208 B/op |
1 |
BenchmarkFlatten/depth2_[]interface_{}([[]_[1_2]_3]) - allocs/op |
5 allocs/op |
5 allocs/op |
1 |
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[1_2]]_3]) |
369.9 ns/op 280 B/op 10 allocs/op |
368.6 ns/op 280 B/op 10 allocs/op |
1.00 |
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[1_2]]_3]) - ns/op |
369.9 ns/op |
368.6 ns/op |
1.00 |
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[1_2]]_3]) - B/op |
280 B/op |
280 B/op |
1 |
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[1_2]]_3]) - allocs/op |
10 allocs/op |
10 allocs/op |
1 |
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) |
323.4 ns/op 272 B/op 8 allocs/op |
324.6 ns/op 272 B/op 8 allocs/op |
1.00 |
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - ns/op |
323.4 ns/op |
324.6 ns/op |
1.00 |
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - B/op |
272 B/op |
272 B/op |
1 |
BenchmarkFlatten/depth2_[]interface_{}([[one]_[[[1]_[2_[3]]]_[4_5]]_6]) - allocs/op |
8 allocs/op |
8 allocs/op |
1 |
BenchmarkInterfaceSlice/[]int([1_2_3]) |
113.4 ns/op 72 B/op 4 allocs/op |
112.6 ns/op 72 B/op 4 allocs/op |
1.01 |
BenchmarkInterfaceSlice/[]int([1_2_3]) - ns/op |
113.4 ns/op |
112.6 ns/op |
1.01 |
BenchmarkInterfaceSlice/[]int([1_2_3]) - B/op |
72 B/op |
72 B/op |
1 |
BenchmarkInterfaceSlice/[]int([1_2_3]) - allocs/op |
4 allocs/op |
4 allocs/op |
1 |
BenchmarkInterfaceSlice/[3]int([1_2_3]) |
60.67 ns/op 48 B/op 1 allocs/op |
60.15 ns/op 48 B/op 1 allocs/op |
1.01 |
BenchmarkInterfaceSlice/[3]int([1_2_3]) - ns/op |
60.67 ns/op |
60.15 ns/op |
1.01 |
BenchmarkInterfaceSlice/[3]int([1_2_3]) - B/op |
48 B/op |
48 B/op |
1 |
BenchmarkInterfaceSlice/[3]int([1_2_3]) - allocs/op |
1 allocs/op |
1 allocs/op |
1 |
BenchmarkInterfaceSlice/[]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) |
542.4 ns/op 384 B/op 13 allocs/op |
536.3 ns/op 384 B/op 13 allocs/op |
1.01 |
BenchmarkInterfaceSlice/[]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - ns/op |
542.4 ns/op |
536.3 ns/op |
1.01 |
BenchmarkInterfaceSlice/[]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - B/op |
384 B/op |
384 B/op |
1 |
BenchmarkInterfaceSlice/[]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - allocs/op |
13 allocs/op |
13 allocs/op |
1 |
BenchmarkInterfaceSlice/[12]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) |
153.1 ns/op 192 B/op 1 allocs/op |
152.9 ns/op 192 B/op 1 allocs/op |
1.00 |
BenchmarkInterfaceSlice/[12]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - ns/op |
153.1 ns/op |
152.9 ns/op |
1.00 |
BenchmarkInterfaceSlice/[12]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - B/op |
192 B/op |
192 B/op |
1 |
BenchmarkInterfaceSlice/[12]string([foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz]) - allocs/op |
1 allocs/op |
1 allocs/op |
1 |
BenchmarkInterfaceSlice/[]interface_{}([[]_[1_2]_3]) |
2.168 ns/op 0 B/op 0 allocs/op |
2.202 ns/op 0 B/op 0 allocs/op |
0.98 |
BenchmarkInterfaceSlice/[]interface_{}([[]_[1_2]_3]) - ns/op |
2.168 ns/op |
2.202 ns/op |
0.98 |
BenchmarkInterfaceSlice/[]interface_{}([[]_[1_2]_3]) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkInterfaceSlice/[]interface_{}([[]_[1_2]_3]) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkInterfaceSlice/[3]interface_{}([[]_[1_2]_3]) |
63.66 ns/op 48 B/op 1 allocs/op |
63.17 ns/op 48 B/op 1 allocs/op |
1.01 |
BenchmarkInterfaceSlice/[3]interface_{}([[]_[1_2]_3]) - ns/op |
63.66 ns/op |
63.17 ns/op |
1.01 |
BenchmarkInterfaceSlice/[3]interface_{}([[]_[1_2]_3]) - B/op |
48 B/op |
48 B/op |
1 |
BenchmarkInterfaceSlice/[3]interface_{}([[]_[1_2]_3]) - allocs/op |
1 allocs/op |
1 allocs/op |
1 |
BenchmarkToBytes |
1079 ns/op 40 B/op 3 allocs/op |
1125 ns/op 40 B/op 3 allocs/op |
0.96 |
BenchmarkToBytes - ns/op |
1079 ns/op |
1125 ns/op |
0.96 |
BenchmarkToBytes - B/op |
40 B/op |
40 B/op |
1 |
BenchmarkToBytes - allocs/op |
3 allocs/op |
3 allocs/op |
1 |
BenchmarkIsFloat/int(0) |
3.098 ns/op 0 B/op 0 allocs/op |
3.178 ns/op 0 B/op 0 allocs/op |
0.97 |
BenchmarkIsFloat/int(0) - ns/op |
3.098 ns/op |
3.178 ns/op |
0.97 |
BenchmarkIsFloat/int(0) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/int(0) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/int(1) |
3.097 ns/op 0 B/op 0 allocs/op |
3.102 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/int(1) - ns/op |
3.097 ns/op |
3.102 ns/op |
1.00 |
BenchmarkIsFloat/int(1) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/int(1) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/int(-1) |
3.097 ns/op 0 B/op 0 allocs/op |
3.135 ns/op 0 B/op 0 allocs/op |
0.99 |
BenchmarkIsFloat/int(-1) - ns/op |
3.097 ns/op |
3.135 ns/op |
0.99 |
BenchmarkIsFloat/int(-1) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/int(-1) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/uint(42) |
3.096 ns/op 0 B/op 0 allocs/op |
3.097 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/uint(42) - ns/op |
3.096 ns/op |
3.097 ns/op |
1.00 |
BenchmarkIsFloat/uint(42) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/uint(42) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/uint8(255) |
3.101 ns/op 0 B/op 0 allocs/op |
3.097 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/uint8(255) - ns/op |
3.101 ns/op |
3.097 ns/op |
1.00 |
BenchmarkIsFloat/uint8(255) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/uint8(255) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/uint16(42) |
3.096 ns/op 0 B/op 0 allocs/op |
3.102 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/uint16(42) - ns/op |
3.096 ns/op |
3.102 ns/op |
1.00 |
BenchmarkIsFloat/uint16(42) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/uint16(42) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/uint32(42) |
3.099 ns/op 0 B/op 0 allocs/op |
3.096 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/uint32(42) - ns/op |
3.099 ns/op |
3.096 ns/op |
1.00 |
BenchmarkIsFloat/uint32(42) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/uint32(42) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/uint64(42) |
3.099 ns/op 0 B/op 0 allocs/op |
3.101 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/uint64(42) - ns/op |
3.099 ns/op |
3.101 ns/op |
1.00 |
BenchmarkIsFloat/uint64(42) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/uint64(42) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/int(42) |
3.097 ns/op 0 B/op 0 allocs/op |
3.101 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/int(42) - ns/op |
3.097 ns/op |
3.101 ns/op |
1.00 |
BenchmarkIsFloat/int(42) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/int(42) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/int8(127) |
3.094 ns/op 0 B/op 0 allocs/op |
3.096 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/int8(127) - ns/op |
3.094 ns/op |
3.096 ns/op |
1.00 |
BenchmarkIsFloat/int8(127) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/int8(127) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/int16(42) |
3.141 ns/op 0 B/op 0 allocs/op |
3.102 ns/op 0 B/op 0 allocs/op |
1.01 |
BenchmarkIsFloat/int16(42) - ns/op |
3.141 ns/op |
3.102 ns/op |
1.01 |
BenchmarkIsFloat/int16(42) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/int16(42) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/int32(42) |
3.103 ns/op 0 B/op 0 allocs/op |
3.094 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/int32(42) - ns/op |
3.103 ns/op |
3.094 ns/op |
1.00 |
BenchmarkIsFloat/int32(42) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/int32(42) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/int64(42) |
3.12 ns/op 0 B/op 0 allocs/op |
3.1 ns/op 0 B/op 0 allocs/op |
1.01 |
BenchmarkIsFloat/int64(42) - ns/op |
3.12 ns/op |
3.1 ns/op |
1.01 |
BenchmarkIsFloat/int64(42) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/int64(42) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/float32(18.3) |
2.477 ns/op 0 B/op 0 allocs/op |
2.786 ns/op 0 B/op 0 allocs/op |
0.89 |
BenchmarkIsFloat/float32(18.3) - ns/op |
2.477 ns/op |
2.786 ns/op |
0.89 |
BenchmarkIsFloat/float32(18.3) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/float32(18.3) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/float64(18.3) |
2.791 ns/op 0 B/op 0 allocs/op |
2.792 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/float64(18.3) - ns/op |
2.791 ns/op |
2.792 ns/op |
1.00 |
BenchmarkIsFloat/float64(18.3) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/float64(18.3) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/float64(1.5) |
2.79 ns/op 0 B/op 0 allocs/op |
2.786 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/float64(1.5) - ns/op |
2.79 ns/op |
2.786 ns/op |
1.00 |
BenchmarkIsFloat/float64(1.5) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/float64(1.5) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/float64(-18.6) |
2.799 ns/op 0 B/op 0 allocs/op |
2.789 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/float64(-18.6) - ns/op |
2.799 ns/op |
2.789 ns/op |
1.00 |
BenchmarkIsFloat/float64(-18.6) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/float64(-18.6) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/string(42) |
33.85 ns/op 0 B/op 0 allocs/op |
34.1 ns/op 0 B/op 0 allocs/op |
0.99 |
BenchmarkIsFloat/string(42) - ns/op |
33.85 ns/op |
34.1 ns/op |
0.99 |
BenchmarkIsFloat/string(42) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/string(42) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/string(052) |
38.13 ns/op 0 B/op 0 allocs/op |
38.08 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/string(052) - ns/op |
38.13 ns/op |
38.08 ns/op |
1.00 |
BenchmarkIsFloat/string(052) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/string(052) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/string(0xff) |
72.27 ns/op 52 B/op 2 allocs/op |
72.28 ns/op 52 B/op 2 allocs/op |
1.00 |
BenchmarkIsFloat/string(0xff) - ns/op |
72.27 ns/op |
72.28 ns/op |
1.00 |
BenchmarkIsFloat/string(0xff) - B/op |
52 B/op |
52 B/op |
1 |
BenchmarkIsFloat/string(0xff) - allocs/op |
2 allocs/op |
2 allocs/op |
1 |
BenchmarkIsFloat/string(-42) |
35.65 ns/op 0 B/op 0 allocs/op |
35.95 ns/op 0 B/op 0 allocs/op |
0.99 |
BenchmarkIsFloat/string(-42) - ns/op |
35.65 ns/op |
35.95 ns/op |
0.99 |
BenchmarkIsFloat/string(-42) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/string(-42) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/string(-0) |
32.57 ns/op 0 B/op 0 allocs/op |
32.63 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/string(-0) - ns/op |
32.57 ns/op |
32.63 ns/op |
1.00 |
BenchmarkIsFloat/string(-0) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/string(-0) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkIsFloat/string(3.14) |
104.6 ns/op 56 B/op 3 allocs/op |
105.3 ns/op 56 B/op 3 allocs/op |
0.99 |
BenchmarkIsFloat/string(3.14) - ns/op |
104.6 ns/op |
105.3 ns/op |
0.99 |
BenchmarkIsFloat/string(3.14) - B/op |
56 B/op |
56 B/op |
1 |
BenchmarkIsFloat/string(3.14) - allocs/op |
3 allocs/op |
3 allocs/op |
1 |
BenchmarkIsFloat/string(-3.14) |
112.4 ns/op 64 B/op 3 allocs/op |
112.2 ns/op 64 B/op 3 allocs/op |
1.00 |
BenchmarkIsFloat/string(-3.14) - ns/op |
112.4 ns/op |
112.2 ns/op |
1.00 |
BenchmarkIsFloat/string(-3.14) - B/op |
64 B/op |
64 B/op |
1 |
BenchmarkIsFloat/string(-3.14) - allocs/op |
3 allocs/op |
3 allocs/op |
1 |
BenchmarkIsFloat/string(0.00) |
105.8 ns/op 56 B/op 3 allocs/op |
105.8 ns/op 56 B/op 3 allocs/op |
1 |
BenchmarkIsFloat/string(0.00) - ns/op |
105.8 ns/op |
105.8 ns/op |
1 |
BenchmarkIsFloat/string(0.00) - B/op |
56 B/op |
56 B/op |
1 |
BenchmarkIsFloat/string(0.00) - allocs/op |
3 allocs/op |
3 allocs/op |
1 |
BenchmarkIsFloat/string(NaN) |
92.58 ns/op 54 B/op 3 allocs/op |
93.86 ns/op 54 B/op 3 allocs/op |
0.99 |
BenchmarkIsFloat/string(NaN) - ns/op |
92.58 ns/op |
93.86 ns/op |
0.99 |
BenchmarkIsFloat/string(NaN) - B/op |
54 B/op |
54 B/op |
1 |
BenchmarkIsFloat/string(NaN) - allocs/op |
3 allocs/op |
3 allocs/op |
1 |
BenchmarkIsFloat/string(-Inf) |
91.1 ns/op 56 B/op 3 allocs/op |
92.49 ns/op 56 B/op 3 allocs/op |
0.98 |
BenchmarkIsFloat/string(-Inf) - ns/op |
91.1 ns/op |
92.49 ns/op |
0.98 |
BenchmarkIsFloat/string(-Inf) - B/op |
56 B/op |
56 B/op |
1 |
BenchmarkIsFloat/string(-Inf) - allocs/op |
3 allocs/op |
3 allocs/op |
1 |
BenchmarkIsFloat/string(+Inf) |
91.74 ns/op 56 B/op 3 allocs/op |
93.17 ns/op 56 B/op 3 allocs/op |
0.98 |
BenchmarkIsFloat/string(+Inf) - ns/op |
91.74 ns/op |
93.17 ns/op |
0.98 |
BenchmarkIsFloat/string(+Inf) - B/op |
56 B/op |
56 B/op |
1 |
BenchmarkIsFloat/string(+Inf) - allocs/op |
3 allocs/op |
3 allocs/op |
1 |
BenchmarkIsFloat/string() |
49.98 ns/op 48 B/op 1 allocs/op |
49.84 ns/op 48 B/op 1 allocs/op |
1.00 |
BenchmarkIsFloat/string() - ns/op |
49.98 ns/op |
49.84 ns/op |
1.00 |
BenchmarkIsFloat/string() - B/op |
48 B/op |
48 B/op |
1 |
BenchmarkIsFloat/string() - allocs/op |
1 allocs/op |
1 allocs/op |
1 |
BenchmarkIsFloat/string(foo) |
69.88 ns/op 51 B/op 2 allocs/op |
69.53 ns/op 51 B/op 2 allocs/op |
1.01 |
BenchmarkIsFloat/string(foo) - ns/op |
69.88 ns/op |
69.53 ns/op |
1.01 |
BenchmarkIsFloat/string(foo) - B/op |
51 B/op |
51 B/op |
1 |
BenchmarkIsFloat/string(foo) - allocs/op |
2 allocs/op |
2 allocs/op |
1 |
BenchmarkIsFloat/bool(true) |
3.1 ns/op 0 B/op 0 allocs/op |
3.097 ns/op 0 B/op 0 allocs/op |
1.00 |
BenchmarkIsFloat/bool(true) - ns/op |
3.1 ns/op |
3.097 ns/op |
1.00 |
BenchmarkIsFloat/bool(true) - B/op |
0 B/op |
0 B/op |
1 |
BenchmarkIsFloat/bool(true) - allocs/op |
0 allocs/op |
0 allocs/op |
1 |
BenchmarkLookupIPs |
48915 ns/op 1840 B/op 44 allocs/op |
50737 ns/op 1840 B/op 44 allocs/op |
0.96 |
BenchmarkLookupIPs - ns/op |
48915 ns/op |
50737 ns/op |
0.96 |
BenchmarkLookupIPs - B/op |
1840 B/op |
1840 B/op |
1 |
BenchmarkLookupIPs - allocs/op |
44 allocs/op |
44 allocs/op |
1 |
BenchmarkIndent |
1960 ns/op 2064 B/op 20 allocs/op |
1946 ns/op 2064 B/op 20 allocs/op |
1.01 |
BenchmarkIndent - ns/op |
1960 ns/op |
1946 ns/op |
1.01 |
BenchmarkIndent - B/op |
2064 B/op |
2064 B/op |
1 |
BenchmarkIndent - allocs/op |
20 allocs/op |
20 allocs/op |
1 |
This comment was automatically generated by workflow using github-action-benchmark.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An additional fix related to #2273. #2287 fixes one of the problems, which was that the file was being opened multiple times. Additionally,
stdinfs
should cache the content of stdin so it can be read from multiple times.