An implementation of the mini serialization benchmark also available for C++ and Java.

For meaningful results, you might want to make sure that the Thrift library is compiled with release build flags, e.g. by including the source files with the build instead of linking libthriftd:

dmd -w -O -release -inline -I../src -Igen-d -ofserialization_benchmark \ $(find ../src/thrift -name '*.d' -not -name index.d) \ gen-d/DebugProtoTest_types.d serialization_benchmark.d