goos: windows goarch: amd64 pkg: github.com/trim21/go-phpserialize cpu: AMD Ryzen 7 5800X 8-Core Processor BenchmarkMarshal_type/bool_true-16 264535392 4.394 ns/op 4 B/op 1 allocs/op BenchmarkMarshal_type/bool_false-16 272075264 4.243 ns/op 4 B/op 1 allocs/op BenchmarkMarshal_type/int8-16 246989488 4.693 ns/op 4 B/op 1 allocs/op BenchmarkMarshal_type/int16-16 242137730 5.484 ns/op 4 B/op 1 allocs/op BenchmarkMarshal_type/int32-16 243100804 5.272 ns/op 4 B/op 1 allocs/op BenchmarkMarshal_type/int64-16 258430820 4.646 ns/op 4 B/op 1 allocs/op BenchmarkMarshal_type/int-16 247998547 4.755 ns/op 4 B/op 1 allocs/op BenchmarkMarshal_type/uint8-16 259539818 4.683 ns/op 4 B/op 1 allocs/op BenchmarkMarshal_type/uint16-16 218023604 5.113 ns/op 4 B/op 1 allocs/op BenchmarkMarshal_type/uint32-16 227735572 5.882 ns/op 4 B/op 1 allocs/op BenchmarkMarshal_type/uint64-16 180775190 6.558 ns/op 8 B/op 1 allocs/op BenchmarkMarshal_type/uint-16 237707266 4.973 ns/op 4 B/op 1 allocs/op BenchmarkMarshal_type/float32-16 101740320 12.07 ns/op 8 B/op 1 allocs/op BenchmarkMarshal_type/float64-16 85935229 13.78 ns/op 8 B/op 1 allocs/op BenchmarkMarshal_type/string-16 143959270 7.979 ns/op 16 B/op 1 allocs/op BenchmarkMarshal_type/simple_slice-16 64637410 19.00 ns/op 48 B/op 1 allocs/op BenchmarkMarshal_type/struct_slice-16 28507286 39.54 ns/op 128 B/op 1 allocs/op BenchmarkMarshal_type/struct_with_map_ptr-16 35835122 30.50 ns/op 64 B/op 1 allocs/op BenchmarkMarshal_type/struct_with_map_embed-16 45352159 25.52 ns/op 48 B/op 1 allocs/op BenchmarkMarshal_type/empty_map-16 213017785 5.751 ns/op 8 B/op 1 allocs/op BenchmarkMarshal_type/nil_map-16 206305948 5.952 ns/op 2 B/op 1 allocs/op BenchmarkMarshal_type/nested_struct_not_anonymous-16 47381013 24.45 ns/op 64 B/op 1 allocs/op BenchmarkMarshal_type/struct_with_all-16 14894971 71.51 ns/op 256 B/op 1 allocs/op BenchmarkMarshal_type/nested_map-16 38753556 31.91 ns/op 32 B/op 1 allocs/op BenchmarkMarshal_type/map[type]any(map)-16 31933492 40.07 ns/op 32 B/op 1 allocs/op BenchmarkMarshal_type/map[type]any(slice)-16 33768856 34.13 ns/op 48 B/op 1 allocs/op BenchmarkMarshal_type/map[type]any(struct)-16 36279862 30.88 ns/op 48 B/op 1 allocs/op BenchmarkMarshal_type/ignore_struct_field-16 119100417 10.13 ns/op 24 B/op 1 allocs/op BenchmarkMarshal_type/private_field-16 98238522 11.80 ns/op 24 B/op 1 allocs/op BenchmarkMarshal_type/omitempty-16 57816556 18.60 ns/op 24 B/op 1 allocs/op BenchmarkMarshal_type/omitempty_ptr-16 57403083 20.62 ns/op 24 B/op 1 allocs/op BenchmarkMarshal_field_as_string-16 104113051 12.16 ns/op 24 B/op 1 allocs/op BenchmarkMarshal_ifce/bool_true-16 36696910 30.66 ns/op 96 B/op 2 allocs/op BenchmarkMarshal_ifce/bool_false-16 33419480 35.47 ns/op 112 B/op 2 allocs/op BenchmarkMarshal_ifce/int8-16 41651769 31.43 ns/op 96 B/op 2 allocs/op BenchmarkMarshal_ifce/int16-16 38244694 32.45 ns/op 96 B/op 2 allocs/op BenchmarkMarshal_ifce/int32-16 34431604 30.72 ns/op 96 B/op 2 allocs/op BenchmarkMarshal_ifce/int64-16 37348852 29.98 ns/op 96 B/op 2 allocs/op BenchmarkMarshal_ifce/int-16 37004828 29.51 ns/op 96 B/op 2 allocs/op BenchmarkMarshal_ifce/uint8-16 34377747 30.10 ns/op 96 B/op 2 allocs/op BenchmarkMarshal_ifce/uint16-16 43394301 30.33 ns/op 96 B/op 2 allocs/op BenchmarkMarshal_ifce/uint32-16 38388206 29.88 ns/op 96 B/op 2 allocs/op BenchmarkMarshal_ifce/uint64-16 35183496 31.19 ns/op 96 B/op 2 allocs/op BenchmarkMarshal_ifce/uint-16 37243947 33.06 ns/op 96 B/op 2 allocs/op BenchmarkMarshal_ifce/float32-16 29413638 41.53 ns/op 112 B/op 2 allocs/op BenchmarkMarshal_ifce/float64-16 26115740 48.29 ns/op 112 B/op 2 allocs/op BenchmarkMarshal_ifce/string-16 35035268 33.08 ns/op 112 B/op 2 allocs/op BenchmarkMarshal_ifce/simple_slice-16 26107898 46.97 ns/op 144 B/op 2 allocs/op BenchmarkMarshal_ifce/struct_slice-16 16728678 71.14 ns/op 224 B/op 2 allocs/op BenchmarkMarshal_ifce/struct_with_map_ptr-16 21139153 56.23 ns/op 160 B/op 2 allocs/op BenchmarkMarshal_ifce/struct_with_map_embed-16 24400658 49.26 ns/op 144 B/op 2 allocs/op BenchmarkMarshal_ifce/empty_map-16 34932463 34.14 ns/op 112 B/op 2 allocs/op BenchmarkMarshal_ifce/nil_map-16 39255069 30.58 ns/op 96 B/op 2 allocs/op BenchmarkMarshal_ifce/nested_struct_not_anonymous-16 23452386 52.08 ns/op 176 B/op 2 allocs/op BenchmarkMarshal_ifce/struct_with_all-16 10714839 104.5 ns/op 369 B/op 2 allocs/op BenchmarkMarshal_ifce/nested_map-16 18091633 63.93 ns/op 128 B/op 2 allocs/op BenchmarkMarshal_ifce/map[type]any(map)-16 15327705 78.82 ns/op 160 B/op 3 allocs/op BenchmarkMarshal_ifce/map[type]any(slice)-16 18342453 62.69 ns/op 160 B/op 3 allocs/op BenchmarkMarshal_ifce/map[type]any(struct)-16 17550555 66.76 ns/op 176 B/op 3 allocs/op BenchmarkMarshal_ifce/ignore_struct_field-16 31791279 42.72 ns/op 128 B/op 2 allocs/op BenchmarkMarshal_ifce/private_field-16 28308782 41.64 ns/op 128 B/op 2 allocs/op BenchmarkMarshal_ifce/omitempty-16 20839266 50.01 ns/op 128 B/op 2 allocs/op BenchmarkMarshal_ifce/omitempty_ptr-16 21155588 48.92 ns/op 128 B/op 2 allocs/op BenchmarkMarshal_map_type/len-1-16 61296105 16.92 ns/op 16 B/op 1 allocs/op BenchmarkMarshal_map_type/len-10-16 19899902 66.17 ns/op 96 B/op 1 allocs/op BenchmarkMarshal_map_type/len-100-16 2391816 508.1 ns/op 1026 B/op 1 allocs/op BenchmarkMarshal_map_type/len-1000-16 169513 6621 ns/op 12314 B/op 1 allocs/op BenchmarkMarshal_map_as_ifce/len-1-16 35992477 31.29 ns/op 48 B/op 2 allocs/op BenchmarkMarshal_map_as_ifce/len-10-16 16084108 71.42 ns/op 128 B/op 2 allocs/op BenchmarkMarshal_map_as_ifce/len-100-16 2145136 516.1 ns/op 1042 B/op 2 allocs/op BenchmarkMarshal_map_as_ifce/len-1000-16 153378 6631 ns/op 12400 B/op 2 allocs/op BenchmarkMarshal_map_with_ifce_value/len-1-16 54495912 21.39 ns/op 16 B/op 1 allocs/op BenchmarkMarshal_map_with_ifce_value/len-10-16 13230604 87.12 ns/op 96 B/op 1 allocs/op BenchmarkMarshal_map_with_ifce_value/len-100-16 1573851 743.0 ns/op 1026 B/op 1 allocs/op BenchmarkMarshal_map_with_ifce_value/len-1000-16 125030 8967 ns/op 12314 B/op 1 allocs/op BenchmarkMarshal_slice_of_value/len-1-16 53278633 19.44 ns/op 56 B/op 2 allocs/op BenchmarkMarshal_slice_of_value/len-10-16 22223620 46.50 ns/op 136 B/op 2 allocs/op BenchmarkMarshal_slice_of_value/len-100-16 4076798 285.6 ns/op 1049 B/op 2 allocs/op BenchmarkMarshal_slice_of_value/len-1000-16 324031 3932 ns/op 12417 B/op 2 allocs/op BenchmarkMarshal_ifce_slice_as_value/len-1-16 39267266 28.84 ns/op 72 B/op 3 allocs/op BenchmarkMarshal_ifce_slice_as_value/len-10-16 22136994 54.32 ns/op 152 B/op 3 allocs/op BenchmarkMarshal_ifce_slice_as_value/len-100-16 3753099 315.8 ns/op 1065 B/op 3 allocs/op BenchmarkMarshal_ifce_slice_as_value/len-1000-16 328098 3771 ns/op 12424 B/op 3 allocs/op BenchmarkMarshal_ifce_slice_of_type/len-1-16 27688686 41.59 ns/op 120 B/op 3 allocs/op BenchmarkMarshal_ifce_slice_of_type/len-10-16 8124752 144.6 ns/op 520 B/op 3 allocs/op BenchmarkMarshal_ifce_slice_of_type/len-100-16 964885 1204 ns/op 4935 B/op 3 allocs/op BenchmarkMarshal_ifce_slice_of_type/len-1000-16 107196 10172 ns/op 59060 B/op 3 allocs/op BenchmarkMarshal_1_type_slice_of_type/len-1-16 36642116 31.34 ns/op 104 B/op 2 allocs/op BenchmarkMarshal_1_type_slice_of_type/len-10-16 8743627 134.3 ns/op 504 B/op 2 allocs/op BenchmarkMarshal_1_type_slice_of_type/len-100-16 1000000 1170 ns/op 4918 B/op 2 allocs/op BenchmarkMarshal_1_type_slice_of_type/len-1000-16 115380 9924 ns/op 59007 B/op 2 allocs/op BenchmarkMarshal_1_ifce_slice_of_ifce/len-1-16 23392314 50.64 ns/op 136 B/op 4 allocs/op BenchmarkMarshal_1_ifce_slice_of_ifce/len-10-16 6311566 191.9 ns/op 536 B/op 4 allocs/op BenchmarkMarshal_1_ifce_slice_of_ifce/len-100-16 738020 1633 ns/op 4952 B/op 4 allocs/op BenchmarkMarshal_1_ifce_slice_of_ifce/len-1000-16 85554 14151 ns/op 58836 B/op 4 allocs/op BenchmarkMarshal_large_struct_10-16 23770659 46.28 ns/op 208 B/op 2 allocs/op BenchmarkMarshal_large_struct_50-16 2052921 584.1 ns/op 1088 B/op 2 allocs/op BenchmarkMarshal_large_struct_100-16 1000000 1105 ns/op 2163 B/op 2 allocs/op BenchmarkMarshal_int/marshal_int_10-16 29314623 42.99 ns/op 120 B/op 2 allocs/op BenchmarkMarshal_int/marshal_int_100-16 4106251 265.4 ns/op 1048 B/op 2 allocs/op BenchmarkMarshal_int/marshal_int_1000-16 290713 3640 ns/op 12402 B/op 2 allocs/op BenchmarkMarshal_uint/marshal_uint_10-16 28535215 39.98 ns/op 120 B/op 2 allocs/op BenchmarkMarshal_uint/marshal_uint_100-16 4170735 290.2 ns/op 1049 B/op 2 allocs/op BenchmarkMarshal_uint/marshal_uint_1000-16 294643 3568 ns/op 12398 B/op 2 allocs/op BenchmarkMarshal_many_map_field-16 8018870 133.7 ns/op 312 B/op 2 allocs/op PASS ok github.com/trim21/go-phpserialize 146.530s