Backport microbenchmark updates to release-0.3

Ref: #4821 #8847