Skip to content

Commit

Permalink
change format of output
Browse files Browse the repository at this point in the history
Signed-off-by: YanxuanLiu <[email protected]>
  • Loading branch information
YanxuanLiu committed Nov 6, 2024
1 parent db50e4a commit f040041
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@
" total_time += round(end - start, 2)\n",
" count = count + 1\n",
" print(\"Retry times : {}, \".format(count) + appName + \" microbenchmark takes {} seconds\".format(round(end - start, 2)))\n",
" res = appName + \" microbenchmark takes average {} seconds after {} retries\\n\".format(round(total_time/retryTimes),retryTimes)\n",
" print(res)\n",
" print(appName + \" microbenchmark takes average {} seconds after {} retries\".format(round(total_time/retryTimes),retryTimes))\n",
" with open('result.txt', 'a') as file:\n",
" file.write(res)"
" file.write(\"{},{},{}\\n\".format(appName, round(total_time/retryTimes), retryTimes))"
]
},
{
Expand Down

0 comments on commit f040041

Please sign in to comment.