sleepyqadir / benchmark-borsh-libraries

Benchmarking the Borsh Libraries for Serialization and Deserialization
1 stars 0 forks source link

Update to 5.0.4 @dao-xyz/borsh #1

Open marcus-pousette opened 1 year ago

marcus-pousette commented 1 year ago

Hey! Great benchmarking repo!

I just did a complete overhaul of the @dao-xyz/borsh repo to make it more performant, so now it should be a lot faster (multiples). Would be cool if you want to try that version out.

marcus-pousette commented 1 year ago

In addition to that,

@field({ type: Uint8Array })
idHash: Uint8Array;

should be

@field({ type: fixedArray('u8',32) })
idHash: Uint8Array;

to be same as the other benchmarks, "type: Uint8Array" also encodes the size at is not fixed so you pay the price for that