forked from BigfootDev/flatbuffers
* Keep the underlying storage capacity when clearing the FlatBufferBuilder. Gives a significant performance boost for serialisation of many small messages. * Use Googles Swift benchmark library for more consistent results and dynamic number of iterations, simplification of tests as result. Co-authored-by: Joakim Hassila <hassila@users.noreply.github.com>