Skip to content

philip-shen/asyncio_trial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asyncio_trial

Asyncoio trial purpose

Table of Contents

Concurrency Test
Results:
Step 1.
Step 2.
Step 3.
Asynchronous:
ThreadPool:
ProcessPool:
Sequence:

Decorators
Git from a folder of repoA to repoB
Step 1.
Step 2.
Step 3.
Step 4.
Step 5.
Step 6.
Step 7.
Step 8.
Step 9. Previous log to add new Repo.
Step 10. Error Msg
Step 11.
Step 12. Done!

Reference

Concurrency Test

Results:

asynchronous vs processpool vs threadpool vs sequential
alt tag

Step 1.

Serve Side: Setup Web Server on Google Colud Platform (GCP) for testing purpose alt tag

Step 2.

Modules Installation:

On Linux:

(venv3) [root@CentOS python3-concurrency]# pip install -r requirements-linux.txt

On Windows(Without uvloop):

(Flask_trial) d:\project\Python\asyncio_trial\concurrency> pip install -r requirements-win32.txt

Step 3.

Asynchronous:

Round 1: alt tag

Round 2: alt tag

Round 3: alt tag

ThreadPool:

Round 1: alt tag

Round 2: alt tag

Round 3: alt tag

ProcessPool:

Round 1: alt tag

Round 2: alt tag

Round 3: alt tag

Sequence:

Round 1: alt tag

Decorators

Decorators are “wrappers”, which means that they let you execute code before and after the function they decorate without modifying the function itself.

Git from a folder of repoA to repoB

Step 1.

alt tag

Step 2.

alt tag

Step 3.

alt tag

Step 4.

alt tag

Step 5.

alt tag

Step 6.

alt tag

Step 7.

alt tag

Step 8.

alt tag

Step 9. Previous log to add new Repo.

alt tag

Step 10. Error Msg

alt tag

Step 11.

alt tag

Step 12. Done!

alt tag

Reference