ruby: record benchmark result in json format