| Runner | Implementation | # users (locust) | req/s |
|---|---|---|---|
| Python | 01_normal | 100 | ~150 |
| Python | 02_normal_w_thread | 100 | ~140 |
| Gunicorn + GThread | 03_gunicorn | 100 | Unresponsive |
| Gunicorn + GThread | 03_gunicorn | 10 | ~140 |
| Gunicorn + GThread | 04_gunicorn_w_thread | 100 | Failure |
This file contains hidden or 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
| def create_and_assert_credential( | |
| register_options: Dict[str, Any], | |
| sign_in_options: Dict[str, Any], | |
| rp_id: str, | |
| rp_name: str, | |
| origin: str, | |
| user_not_present: bool = True, | |
| user_not_verified: bool = True, | |
| ): | |
| from soft_webauthn import SoftWebauthnDevice |
This file contains hidden or 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
| from pydantic import BaseModel | |
| class RecursiveConstruct(BaseModel): | |
| @classmethod | |
| def construct(cls, _fields_set: Optional[Set[str]] = None, **values: Any): | |
| """ | |
| Recursively construct pydantic model without validations. | |
| Similar to `model_construct`, but recursive. | |
| """ |
This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| import 'package:hooks_riverpod/hooks_riverpod.dart'; | |
| import 'package:logging/logging.dart'; | |
| class ThemeProvider extends ChangeNotifier { | |
| final log = Logger('ThemeProvider'); | |
| bool _isDark = true; | |
| bool get isDark => _isDark; | |
| set isDark(bool val) { |
nano /etc/postfix/main.cnf- add to the end:
sender_bcc_maps = hash:/etc/postfix/sender_bcc_maps nano /etc/postfix/sender_bcc_maps- Add lines in this format:
<sender@email.com> <bcc@email.com>
nano /etc/postfix/main.cnf- add to the end:
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps