Skip to content

Commit

Permalink
Merge pull request #97 from george0st/changes
Browse files Browse the repository at this point in the history
Update docs
  • Loading branch information
george0st authored Nov 14, 2024
2 parents fd784cf + 63393ca commit 3692377
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The QGate Performance is enabler for python performance test execution. Key bene

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

## Usage

Expand Down
4 changes: 2 additions & 2 deletions qgate_perf/output_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ def print_header(self, run_setup: RunSetup=None):
def print_footer(self, final_state):
seconds = round((datetime.utcnow() - self._start_tasks).total_seconds(), 1)
self.print(f"############### State: {'OK' if final_state else 'Error'}, "
f" Duration: {Helper.get_readable_duration(seconds)} ({seconds}"
f" seconds) ###############")
f"Duration: {Helper.get_readable_duration(seconds)} ({seconds} "
f"seconds) ###############")

def print_detail(self, run_setup: RunSetup, return_dict, processes, threads, group=''):
"""
Expand Down
8 changes: 5 additions & 3 deletions qgate_perf/parallel_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _executeCore(self, run_setup: RunSetup, return_dict, processes=2, threads=2)
args=(threads, process_key, return_dict, run_setup))
proc.append(p)

# start
# start all
for p in proc:
p.start()

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

return performance

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

return performance

Expand Down
2 changes: 1 addition & 1 deletion qgate_perf/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Store the version here so:

__version__ = '0.4.49'
__version__ = '0.4.50'

0 comments on commit 3692377

Please sign in to comment.