-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_output.log
More file actions
165 lines (149 loc) · 8.69 KB
/
example_output.log
File metadata and controls
165 lines (149 loc) · 8.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
------------------------------------------------------------
1. Single run (fast path)
------------------------------------------------------------
result: 42
------------------------------------------------------------
2. Multiple runs — threading (runs=6, workers=3)
------------------------------------------------------------
2026-03-13 00:48:55 [INFO] (timeit.decorator) single_run: Exec: 50.15ms
2026-03-13 00:48:55 [DEBUG] (timeit.decorator) Starting threading tasks with 3 workers
2026-03-13 00:48:56 [INFO] (timeit.decorator) threaded_runs: Avg: 100.06ms, Med: 100.06ms
2026-03-13 00:48:56 [DEBUG] (timeit.decorator) Starting multiprocessing tasks with 4 workers
result: 7
------------------------------------------------------------
3. Multiple runs — multiprocessing @decorator syntax (runs=4, workers=4)
------------------------------------------------------------
2026-03-13 00:48:56 [INFO] (timeit.decorator) cpu_bound: Avg: 13.81ms, Med: 15.55ms
2026-03-13 00:48:56 [DEBUG] (timeit.decorator) Starting threading tasks with 3 workers
result: 124999750000
------------------------------------------------------------
4. detailed=True output (runs=5, workers=3)
------------------------------------------------------------
2026-03-12 23:52:08 [INFO] (timeit.decorator) cpu_bound: Avg: 10.12ms, Med: 8.80ms
2026-03-12 23:52:08 [DEBUG] (timeit.decorator) Starting threading tasks with 3 workers
2026-03-12 23:52:08 [INFO] (timeit.decorator) Function __main__.detailed_output
Args (99,)
Kwargs {}
Runs 5
Workers 3
Average Time 50.08ms
Median Time 50.07ms
Min Time 50.06ms
Max Time 50.12ms
Std Deviation 22.36µs
Total Time 250.39ms
Timed Out False
2026-03-12 23:52:08 [DEBUG] (timeit.decorator) Starting threading tasks with 1 workers
result: 99
------------------------------------------------------------
5. Timeout non-enforced — warns but lets function complete
------------------------------------------------------------
2026-03-13 00:48:56 [INFO] (timeit.decorator) Function __main__.detailed_output
Args (99,)
Kwargs {}
Runs 5
Workers 3
Average Time 50.09ms
Median Time 50.10ms
Min Time 50.05ms
Max Time 50.11ms
Std Deviation 24.92µs
Total Time 250.43ms
Timed Out False
2026-03-13 00:48:56 [DEBUG] (timeit.decorator) Starting threading tasks with 1 workers
2026-03-13 00:48:56 [WARNING] (timeit.decorator._timeit_worker) Timeout exceeded (took 0.10006952285766602s, timeout was 0.05s), but execution continued.
2026-03-13 00:48:56 [WARNING] (timeit.decorator._timeit_worker) Timeout exceeded (took 0.10017752647399902s, timeout was 0.05s), but execution continued.
2026-03-13 00:48:56 [WARNING] (timeit.decorator._timeit_worker) Timeout exceeded (took 0.10006999969482422s, timeout was 0.05s), but execution continued.
2026-03-13 00:48:56 [INFO] (timeit.decorator) timeout_not_enforced: Avg: 100.11ms, Med: 100.07ms
2026-03-13 00:48:56 [DEBUG] (timeit.decorator) Starting threading tasks with 4 workers
result: 'completed despite timeout'
------------------------------------------------------------
6. Timeout enforced — all cancelled (→ None)
------------------------------------------------------------
2026-03-13 00:48:56 [WARNING] (timeit.decorator) Function execution 0 exceeded timeout of 0.05s and was canceled.
2026-03-13 00:48:56 [WARNING] (timeit.decorator) Function execution 1 exceeded timeout of 0.05s and was canceled.
2026-03-13 00:48:56 [WARNING] (timeit.decorator) Function execution 2 exceeded timeout of 0.05s and was canceled.
result: 'should be cancelled'
------------------------------------------------------------
7. Function returns None legitimately
------------------------------------------------------------
2026-03-13 00:48:56 [INFO] (timeit.decorator) timeout_enforced: Avg: 87.51ms, Med: 50.00ms
2026-03-13 00:48:56 [DEBUG] (timeit.decorator) Starting threading tasks with 1 workers
2026-03-13 00:48:56 [INFO] (timeit.decorator) returns_none: Avg: 20.07ms, Med: 20.07ms
2026-03-13 00:48:56 [DEBUG] (timeit.decorator) Starting threading tasks with 3 workers
2026-03-13 00:48:56 [ERROR] (root) Error in _timeit_worker: intentional error
2026-03-13 00:48:56 [ERROR] (root) Error in _timeit_worker: intentional error
2026-03-13 00:48:56 [ERROR] (root) Error in _timeit_worker: intentional error
2026-03-13 00:48:56 [ERROR] (timeit.decorator) always_raises: All function executions failed or returned None.
2026-03-13 00:48:56 [DEBUG] (timeit.decorator) Starting multiprocessing tasks with 4 workers
result: None
------------------------------------------------------------
8. All runs raise — returns None
------------------------------------------------------------
result: None
------------------------------------------------------------
9a. Instance method — multiprocessing
------------------------------------------------------------
2026-03-12 23:52:08 [INFO] (timeit.decorator) compute: Avg: 14.64ms, Med: 16.06ms
2026-03-12 23:52:08 [DEBUG] (timeit.decorator) Starting threading tasks with 4 workers
result: 249999500001
------------------------------------------------------------
9b. Instance method — threading
------------------------------------------------------------
2026-03-13 00:48:56 [INFO] (timeit.decorator) compute: Avg: 15.49ms, Med: 16.77ms
2026-03-13 00:48:56 [DEBUG] (timeit.decorator) Starting threading tasks with 4 workers
result: 10
------------------------------------------------------------
15. Single run + enforce_timeout=True (no-op warning)
------------------------------------------------------------
result: 'fast'
------------------------------------------------------------
10. Async — single run
------------------------------------------------------------
2026-03-13 00:48:56 [INFO] (timeit.decorator) io_task: Avg: 50.07ms, Med: 50.06ms
2026-03-13 00:48:56 [WARNING] (timeit.decorator) enforce_timeout=True is ignored when runs=1 and workers=1 in sync mode — no parallelism or cancellation is possible.
2026-03-13 00:48:56 [INFO] (timeit.decorator) single_run_enforce_warn: Exec: 1.91µs
2026-03-13 00:48:56 [DEBUG] (asyncio) Using selector: EpollSelector
result: 'async done'
------------------------------------------------------------
11. Async — multiple runs, detailed=True
------------------------------------------------------------
2026-03-13 00:48:56 [INFO] (timeit.decorator) async_single: Exec: 50.18ms
result: 'async multi done'
------------------------------------------------------------
12. Async timeout — non-enforced (completes late)
------------------------------------------------------------
2026-03-13 00:48:57 [INFO] (timeit.decorator) Function __main__.async_multi
Args ()
Kwargs {}
Runs 6
Workers 3
Average Time 50.17ms
Median Time 50.18ms
Min Time 50.16ms
Max Time 50.19ms
Std Deviation 13.46µs
Total Time 301.05ms
Timed Out False
2026-03-13 00:48:57 [WARNING] (timeit.decorator) async_timeout_soft exceeded timeout of 0.05s but continued running.
2026-03-13 00:48:57 [WARNING] (timeit.decorator) async_timeout_soft exceeded timeout of 0.05s but continued running.
2026-03-13 00:48:57 [WARNING] (timeit.decorator) async_timeout_soft exceeded timeout of 0.05s but continued running.
2026-03-13 00:48:57 [INFO] (timeit.decorator) async_timeout_soft: Avg: 50.26ms, Med: 50.27ms
result: 'finished late'
------------------------------------------------------------
13. Async timeout — enforced (all cancelled → None)
------------------------------------------------------------
result: None
------------------------------------------------------------
14. Async — all runs raise (→ None)
------------------------------------------------------------
result: None
2026-03-13 00:48:57 [WARNING] (timeit.decorator) async_timeout_hard exceeded enforced timeout of 0.05s and was canceled.
2026-03-13 00:48:57 [WARNING] (timeit.decorator) async_timeout_hard exceeded enforced timeout of 0.05s and was canceled.
2026-03-13 00:48:57 [WARNING] (timeit.decorator) async_timeout_hard exceeded enforced timeout of 0.05s and was canceled.
2026-03-13 00:48:57 [WARNING] (timeit.decorator) async_timeout_hard exceeded enforced timeout of 0.05s and was canceled.
2026-03-13 00:48:57 [INFO] (timeit.decorator) async_timeout_hard: Avg: 50.36ms, Med: 50.35ms
2026-03-13 00:48:57 [ERROR] (timeit.decorator) Error during async execution: async intentional error
2026-03-13 00:48:57 [ERROR] (timeit.decorator) Error during async execution: async intentional error
2026-03-13 00:48:57 [ERROR] (timeit.decorator) Error during async execution: async intentional error
2026-03-13 00:48:57 [ERROR] (timeit.decorator) async_always_fails: All async function executions failed or returned None.