Skip to content

Commit 3692377

Browse files
authored
Merge pull request #97 from george0st/changes
Update docs
2 parents fd784cf + 63393ca commit 3692377

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The QGate Performance is enabler for python performance test execution. Key bene
1616

1717
NOTE: The recommendations are:
1818
- use Python >= 3.11
19-
- use the 'QGate-Perf-cs' (C# implementation of QGate-Perf), in case of bigger parallelism and lower lateness
19+
- use the 'QGate-Perf-cs' (C# implementation of QGate-Perf), in case of bigger parallelism and lower CPU spending
2020

2121
## Usage
2222

qgate_perf/output_result.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ def print_header(self, run_setup: RunSetup=None):
254254
def print_footer(self, final_state):
255255
seconds = round((datetime.utcnow() - self._start_tasks).total_seconds(), 1)
256256
self.print(f"############### State: {'OK' if final_state else 'Error'}, "
257-
f" Duration: {Helper.get_readable_duration(seconds)} ({seconds}"
258-
f" seconds) ###############")
257+
f"Duration: {Helper.get_readable_duration(seconds)} ({seconds} "
258+
f"seconds) ###############")
259259

260260
def print_detail(self, run_setup: RunSetup, return_dict, processes, threads, group=''):
261261
"""

qgate_perf/parallel_executor.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _executeCore(self, run_setup: RunSetup, return_dict, processes=2, threads=2)
9494
args=(threads, process_key, return_dict, run_setup))
9595
proc.append(p)
9696

97-
# start
97+
# start all
9898
for p in proc:
9999
p.start()
100100

@@ -222,7 +222,8 @@ def run_executor(self, executor_list = [[2, 1, '1x thread'], [2, 2, '2x thread']
222222
output.print(f"SYSTEM ERROR in 'run_executor': {type(ex).__name__} - '{str(ex) if ex is not None else '!! Noname exception !!'}'")
223223
performance.add_state(False)
224224
finally:
225-
output.close()
225+
if output:
226+
output.close()
226227

227228
return performance
228229

@@ -277,7 +278,8 @@ def run(self, processes = 2, threads = 2, run_setup: RunSetup = None, performanc
277278
output.print(f"SYSTEM ERROR in 'run': '{str(e) if e is not None else '!! Noname exception !!'}'")
278279
performance.add_state(False)
279280
finally:
280-
output.close()
281+
if output:
282+
output.close()
281283

282284
return performance
283285

qgate_perf/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Store the version here so:
22

3-
__version__ = '0.4.49'
3+
__version__ = '0.4.50'

0 commit comments

Comments
 (0)