Benchmarks

Serialization benchmarks and a big perf improvement