wc -l file_name Real is wall clock time time from start to finish of t

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
1. wc -l file_name
2. Real is wall clock time - time from start to finish of the call. This is all elapsed time including time slices used by other processes and time the process spends blocked (for example if it is waiting for I/O to complete).
User is the amount of CPU time spent in user-mode code (outside the kernel) within the process. This is only actual CPU time used in executing the process. Other processes and time the process spends blocked do not count towards this figure.
Sys is the amount of CPU time spent in the kernel within the process. This means executing CPU time spent in system calls within the kernel, as opposed to library code, which is still running in user-space. Like 'user', this is only CPU time used by the process.
3.
import csv
import json
with open('out_task_3.csv', 'r') as out_csv \
, open('into_task_d_3.csv', 'w') as into_csv_ding \
, open('into_task_dd_3.csv', 'w') as into_csv_ding_device:
for rows in csv.DictReader(out_csv):
pd = rows['json'].replace('{', '[{').replace('}', '}]')
js = json.loads(pd)
ding_id = js[0]['ding_id']
device_id = js[0]['device_id']
into_csv_ding.write(f'{ding_id}\n')
into_csv_ding_device.write(f'{device_id}, {ding_id}\n')