memo vs no memo multiple
Checking if concatenating two strings is costly enough to need memoization
one year ago
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 Edg/103.0.1264.77
Test name |
Executions per second |
No memo - few strings |
97.7 Ops/sec |
Memo - few strings |
112.7 Ops/sec |
no memo - many strings |
113.2 Ops/sec |
memo - many strings |
107.0 Ops/sec |
no memo - big strings |
108.7 Ops/sec |
memo - big strings |
109.2 Ops/sec |
Tests:
-
No memo - few strings
-
Memo - few strings
-
no memo - many strings
-
memo - many strings
-
no memo - big strings
-
memo - big strings
Open this result on MeasureThat.net