You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-15Lines changed: 27 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,27 +15,39 @@ Version 1.0
15
15
16
16
> BEVE is designed to be faster on modern hardware than CBOR, BSON, and MessagePack, but it is also more space efficient for typed arrays.
17
17
18
-
## Performance vs MessagePack
18
+
## Performance
19
19
20
-
The following table lists the performance increase between BEVE with [Glaze](https://github.com/stephenberry/glaze) versus other libraries and their binary formats.
20
+
BEVE with [Glaze](https://github.com/stephenberry/glaze) versus [JSON](https://www.json.org/), [MessagePack](https://github.com/msgpack/msgpack-c), and [CBOR](https://cbor.io/) (via [jsoncons](https://github.com/danielaparker/jsoncons)).
BEVE and CBOR (with RFC 8746 typed arrays) store contiguous arrays as raw memory blocks, achieving the same message sizes. However, BEVE with Glaze is optimized to use direct `memcpy` operations, resulting in significantly higher throughput. MessagePack encodes each element individually with type tags, resulting in larger messages and slower performance for numeric arrays.
0 commit comments