cmd/api: add a benchmark over the standard library

R=golang-dev, gri
CC=golang-dev
https://codereview.appspot.com/12603045