-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from shanbay/feature/multiprocessing
add multiprocessing mode server
- Loading branch information
Showing
23 changed files
with
487 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[flake8] | ||
# https://github.com/ambv/black/blob/master/.flake8 | ||
# E203 whitespace before ':' | ||
# E266 Too many leading '#' for block comment | ||
# E501 Line too long | ||
# W503 Line break occurred before a binary operator | ||
ignore = E203, E266, E501, W503, W504, B950 | ||
max-line-length = 88 | ||
max-complexity = 18 | ||
exclude = | ||
.git, | ||
tests, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[general] | ||
# Ignore certain rules (comma-separated list), you can reference them by | ||
# their id or by their full name | ||
ignore=body-is-missing | ||
|
||
contrib=contrib-title-conventional-commits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[settings] | ||
known_third_party = app,blinker,cachext,celery,configs,google,grpc,helloworld_pb2,helloworld_pb2_grpc,peewee,peeweext,pendulum,pkg_resources,pytest,sentry_sdk,setuptools,worldhello_pb2,worldhello_pb2_grpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
repos: | ||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook | ||
rev: v7.0.1 | ||
- repo: "https://github.com/pre-commit/pre-commit-hooks" | ||
rev: v2.2.3 | ||
hooks: | ||
- id: commitlint | ||
stages: [commit-msg] | ||
additional_dependencies: ["@commitlint/config-conventional"] | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: no-commit-to-branch | ||
args: [ --branch, master, --branch, develop ] | ||
- repo: https://github.com/asottile/seed-isort-config | ||
rev: v1.9.1 | ||
hooks: | ||
- id: seed-isort-config | ||
- repo: "https://github.com/pre-commit/mirrors-isort" | ||
rev: v5.10.1 | ||
hooks: | ||
- id: isort | ||
- repo: "https://github.com/ambv/black" | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
exclude: "(tests)" | ||
- repo: "https://github.com/pre-commit/pre-commit-hooks" | ||
rev: v2.2.3 | ||
hooks: | ||
- id: flake8 | ||
exclude: "(tests)" | ||
- repo: https://github.com/jorisroovers/gitlint | ||
rev: v0.17.0 | ||
hooks: | ||
- id: gitlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ | |
- 内置扩展 | ||
- [celery](contrib/celery) | ||
- [Sentry](contrib/sentry) | ||
- 性能测试 | ||
- [benchmark](benchmark) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 性能测试 | ||
|
||
## 测试结果(2022-06-23) | ||
|
||
测试配置 | ||
发行版:5.15.41-1-MANJARO | ||
CPU: AMD Rayzen 2600 | ||
Memory: 16GB DDR4 | ||
|
||
测试参数 | ||
并发:[50,100,200,300] | ||
时长:30s | ||
|
||
延迟比较 | ||
![Latency](/docs/assets/images/2022-06-23-latency.jpg "Latency") | ||
|
||
QPS比较 | ||
![QPS](/docs/assets/images/2022-06-23-qps.jpg "QPS") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.