First runtime performance benchmarks.

Review by @gzm0
// must be inlined by the compiler. E.g. do not put a type annotation.