Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gedis server performance analysis #214

Open
ahsayde opened this issue Apr 15, 2020 · 1 comment
Open

gedis server performance analysis #214

ahsayde opened this issue Apr 15, 2020 · 1 comment
Milestone

Comments

@ahsayde
Copy link
Contributor

ahsayde commented Apr 15, 2020

done by this test

  • with a pool of size 100 the test registers 10,000 actor (same actor with different names) and execute them and verify the results
  • verify the number of the actor's objects created in the memory equals the number of registered actors
  • unregister all the actors and verify that they are removed from the memory

After registering the actors

image

the number of objects in the memory with type Example is 10,000

dict                       50918
tuple                      39669
list                       20907
weakref                    16202
type                       13808
ModuleSpec                 11787
SourceFileLoader           11676
Operator                   11345
Example                    10000  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Name                       7200
PythonNode                 6844
frozenset                  4045
cell                       3866
getset_descriptor          3589
builtin_function_or_method 3321
property                   3083
DFAPlan                    2602
Param                      1830
module                     1797
Newline                    1738
Attrs                      1736
_Binding                   1600
wrapper_descriptor         1523
Keyword                    1445
set                        1396
method_descriptor          1379
NFAArc                     1237
NFAState                   1090
Function                   911
member_descriptor          761
classmethod                529
MovedAttribute             425
ABCMeta                    393
DFAState                   387
method                     381
Char                       332
staticmethod               331
CTypeDescr                 291
ExprStmt                   258
FileFinder                 254
deque                      245
SimpleCache                232
MovedModule                219
include                    216
EntryPoint                 207
Decorator                  204
_AndList                   185
Number                     156
cython_function_or_method  150
OrderedDict                148
PathMetadata               132
String                     129
IfStmt                     124
Class                      112
Regex                      111
And                        110
abstractproperty           107
DistInfoDistribution       105
TagInfo                    104
ObjectIdentifier           101
Literal                    92
_TokenType                 92
mappingproxy               84
ReservedString             83
Signature                  82
Condition                  75
_NamedIntConstant          74
Logger                     73
NodeType                   68
HTTPStatus                 58
RegexLexerMeta             57
IPv4Address                55
words                      53
_GenericAlias              49
StgDict                    45
EnumMeta                   45
Window                     45
ScrollOffsets              45
Style                      44
IPv6Address                43
Optional                   43
KeyBindings                43
IPv4Network                41
default                    41
ExtensionFileLoader        40
GetCipherByName            36
StyleMeta                  36
itemgetter                 34
Event                      33
attrgetter                 32
Signals                    32
AddressFamily              32
classmethod_descriptor     29
BaseMeta                   29
Option                     29
IPv6Network                28
AlertDescription           27
EggInfoDistribution        27
RegexFlag                  26

After un-registering the actors

image

the number of objects in the memory with type Example is not in the top 100

function                   57842
dict                       50918
tuple                      39669
list                       20907
weakref                    16202
type                       13808
ModuleSpec                 11787
SourceFileLoader           11676
Operator                   11345
Name                       7200
PythonNode                 6844
frozenset                  4045
cell                       3866
getset_descriptor          3589
builtin_function_or_method 3321
property                   3083
DFAPlan                    2602
Param                      1830
module                     1797
Newline                    1738
Attrs                      1736
_Binding                   1600
wrapper_descriptor         1523
Keyword                    1445
set                        1396
method_descriptor          1379
NFAArc                     1237
NFAState                   1090
Function                   911
member_descriptor          761
classmethod                529
MovedAttribute             425
ABCMeta                    393
DFAState                   387
method                     381
Char                       332
staticmethod               331
CTypeDescr                 291
ExprStmt                   258
FileFinder                 254
deque                      245
SimpleCache                232
MovedModule                219
include                    216
EntryPoint                 207
Decorator                  204
_AndList                   185
Number                     156
cython_function_or_method  150
OrderedDict                148
PathMetadata               132
String                     129
IfStmt                     124
Class                      112
Regex                      111
And                        110
abstractproperty           107
DistInfoDistribution       105
TagInfo                    104
ObjectIdentifier           101
Literal                    92
_TokenType                 92
mappingproxy               84
ReservedString             83
Signature                  82
Condition                  75
_NamedIntConstant          74
Logger                     73
NodeType                   68
HTTPStatus                 58
RegexLexerMeta             57
IPv4Address                55
words                      53
_GenericAlias              49
StgDict                    45
EnumMeta                   45
Window                     45
ScrollOffsets              45
Style                      44
IPv6Address                43
Optional                   43
KeyBindings                43
IPv4Network                41
default                    41
ExtensionFileLoader        40
GetCipherByName            36
StyleMeta                  36
itemgetter                 34
Event                      33
attrgetter                 32
Signals                    32
AddressFamily              32
classmethod_descriptor     29
BaseMeta                   29
Option                     29
IPv6Network                28
AlertDescription           27
EggInfoDistribution        27
RegexFlag                  26
PyCSimpleType              26

@ahsayde ahsayde self-assigned this Apr 15, 2020
@xmonader
Copy link
Collaborator

xmonader commented May 4, 2020

now i think it needs to be redone in alpha2 :)

@xmonader xmonader removed the research label May 11, 2020
@xmonader xmonader added this to the next milestone May 28, 2020
@ahsayde ahsayde removed their assignment Aug 6, 2020
@xmonader xmonader modified the milestones: next, later Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants