Rails api implementation benchmark