Command performance is quite bad compared to java edition
Partner Rank: 4
Verification builds: 1.11, 1.12, 1.13, etc
Regression builds: Not really a regression, just a general issue
Summary: Commands affect performance much more harshly in bedrock than java, causing greater tick slowdowns with fewer commands being run
Impact: General performance of all projects is worse than it could be
Repro Steps:
- Download and open the attached bedrock world: bedrock.mcworld

There are 256 pigs in a chunk loaded thousands of blocks away.
Observe the redstone clock ticking at a consistent fast rate. - Power the leftmost command block with a redstone block.
This block has each pig run a function that applies speed to itself 100 times. - Observe the redstone clock slowing down significantly.
- Depower the left command block and power the right one.
This block runs a function directly that applies speed to all pigs 100 times. - Observe the redstone clock slowing down significantly again.
- Download and open the attached java world: java.zip

There are also 256 pigs in a distant chunk in this world.
The command blocks run 1.13-equivalent commands. - Press Alt+F3 and look at the TPS graph (right), and watch the redstone clock.
- Perform the command block tests again.
- Observe the clock only slowing down slightly, or continuing to run at full speed.
Expected Results: Equal if not better performance in bedrock edition.
Observed Results: Significantly worse performance in bedrock edition.
Screenshots/Videos attached: Yes