memo vs no memo multiple inverted
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 |
110.9 Ops/sec |
Memo - few strings |
108.3 Ops/sec |
no memo - many strings |
91.4 Ops/sec |
memo - many strings |
70.2 Ops/sec |
no memo - big strings |
67.8 Ops/sec |
memo - big strings |
65.5 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