Results of github.com/fraillt/cpp_serializers_benchmark:
library | test case | bin size | data size | ser time | des time |
---|---|---|---|---|---|
bitscpp | general | 48984B | 7366B | 692ms | 734ms |
bitscpp | compressed_float | 49144B | 4666B | 733ms | 934ms |
bitscpp | compressed_float unsafe_read | 49160B | 4666B | 769ms | 778ms |
bitscpp | general unsafe_read | 49048B | 7366B | 701ms | 792ms |
bitsery | general | 83800B | 6913B | 1245ms | 956ms |
bitsery | brief syntax1 | 83928B | 6913B | 1267ms | 857ms |
bitsery | compatibility2 | 92512B | 7113B | 1014ms | 941ms |
bitsery | compression3 | 96312B | 4213B | 1476ms | 1128ms |
bitsery | fixed buffer4 | 50360B | 6913B | 858ms | 1064ms |
bitsery | stream5 | 59792B | 6913B | 1175ms | 4275ms |
bitsery | unsafe read6 | 83136B | 6913B | 1207ms | 509ms |
cereal | general | 82816B | 10413B | 5987ms | 4897ms |
handwritten | general7 | 48768B | 10413B | 798ms | 885ms |
handwritten | unsafe8 | 44672B | 10413B | 844ms | 550ms |
iostream | general9 | 54592B | 8413B | 7628ms | 9344ms |
msgpack | general | 85296B | 8857B | 1097ms | 8080ms |
yas | general10 | 69840B | 10463B | 1990ms | 1321ms |
yas | compression11 | 74168B | 7315B | 2421ms | 1473ms |
yas | stream12 | 60280B | 10463B | 7253ms | 7227ms |
zpp_bits | general | 57088B | 8413B | 604ms | 593ms |
zpp_bits | fixed buffer | 44712B | 8413B | 552ms | 612ms |
- Note: for string serialization, in generic
op_string_sized(str, 1)
was used, otherwise, defaultop(...)
was used.