I am trying to compare bson serialization with json like that:
{
"startAmount": 1000,
"amounts": [
1000,
15000
],
"stakes": [
0.0395,
0.0062
],
"step": 10
}
Note that actual size for amounts
and stakes
is 1500. amounts
are between 1000 and 15000, stakes
just random value from 0.0001d
to 0.05d
. So when this json was passed to online bson serializer I got file 31.5 Kb, but original json size is 17.4Kb. In theory bson much smaller when it comes to pack numbers.
So what is wrong? Does this result correct or there is some mistake in packaging? Or may be bson require more space when numbers with dot are packaged?