See [UnmanagedCall](https://github.com/gfoidl/Benchmarks/tree/master/misc/UnmanagedCall) benchmarks for reference.