🏡 index : ~doyle/serde_bson.git

author Jordan Doyle <jordan@doyle.la> 2021-07-23 2:15:23.0 +00:00:00
committer Jordan Doyle <jordan@doyle.la> 2021-07-23 2:15:23.0 +00:00:00
commit
13a82be6bd2d70c3fc28abd7e28a6cb28b00330d [patch]
tree
4680c7096c5a8891348400bb436ef18c7df3175a
parent
fd15ebb44b65ce7a8aa81250edbef294c79e3592
download
13a82be6bd2d70c3fc28abd7e28a6cb28b00330d.tar.gz

Owned data benchmarks



Diff

 README.md | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 1016dda..b7899bd 100644
--- a/README.md
+++ b/README.md
@@ -5,19 +5,34 @@ comes across and it's looking like it shows significant improvement across the b
for serialisation (~80% improvement).

```
mongodb's bson  time:   [1.1160 us 1.1171 us 1.1183 us]
borrowed: mongodb's bson  time:   [1.1160 us 1.1171 us 1.1183 us]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild

serde_bson      time:   [201.99 ns 202.17 ns 202.38 ns]                                 
borrowed: serde_bson      time:   [201.99 ns 202.17 ns 202.38 ns]                                 
Found 10 outliers among 100 measurements (10.00%)
  4 (4.00%) low mild
  4 (4.00%) high mild
  2 (2.00%) high severe
```

Even on owned data it shows a significant improvement:

```
owned: mongodb's bson	time:   [1.0740 us 1.0762 us 1.0794 us]                                   
Found 6 outliers among 100 measurements (6.00%)
  4 (4.00%) low mild
  1 (1.00%) high mild
  1 (1.00%) high severe

owned: serde_bson	time:   [209.67 ns 210.18 ns 211.06 ns]                              
Found 9 outliers among 100 measurements (9.00%)
  5 (5.00%) high mild
  4 (4.00%) high severe
```

There's a few pieces missing such as arrays and nested documents but they're not
too difficult to add, it's just that it's 2:38am and I've smashed this out in an
hour.

Pull requests welcome as always.
\ No newline at end of file
Pull requests welcome as always.