foxglove / mcap

MCAP is a modular, performant, and serialization-agnostic container file format, useful for pub/sub and robotics applications.
https://mcap.dev
MIT License
496 stars 90 forks source link

experiment(ts): perf #1218

Open AaronO opened 1 month ago

AaronO commented 1 month ago

Contains a bunch of perf experiments:

McapStreamReader
        9.20±0.31 op/s  Heap Used: 9.08±0.06 MB/op      Heap Total: 0.05±0.05 MB/op     ArrayBuffers: 44.70±26.63 MB/op
McapStreamDispatch
        26.30±0.22 op/s Heap Used: 2.15±0.01 MB/op      Heap Total: 0.00±0.00 MB/op     ArrayBuffers: 1.21±0.00 MB/op

BigInt => Number & faster crc32 are hard to land generally for browsers etc...