The formation of massive objects via gravitational collapse is relevant both for explaining the origin of the first supermassive black holes and in the context of massive star formation. Here, we analyze simulations of the formation of massive objects pursued by different groups and in various environments, concerning the formation of supermassive black holes, primordial stars, as well as present-day massive stars. We focus here particularly on the regime of small virial parameters, that is, low ratios of the initial kinetic to gravitational energy, low to moderate Mach numbers, and the phase before feedback is very efficient. We compare the outcomes of collapse under different conditions using dimensionless parameters, particularly the star formation efficiency є*, the fraction ƒ* of mass in the most massive object relative to the total stellar mass, and the fraction ƒtot of mass of the most massive object as a function of the total mass. We find that in all simulations analyzed here, ƒtot increases as a function of є*, although the steepness of the increase depends on the environment. The relation between ƒ* and є* is found to be more complex and also strongly depends on the number of protostars present at the beginning of the simulations. We show that a collision parameter, estimated as the ratio of the system size divided by the typical collision length, allows us to approximately characterize whether collisions are important. A high collision parameter implies a steeper increase in the relation between ƒtot and є*. We analyze the statistical correlation between the dimensionless quantities using the Spearman coefficient and further confirm via a machine learning analysis that good predictions of ƒ* can be obtained from є* together with a rough estimate of the collision parameter. This suggests that a good estimate of the mass of the most massive object can be obtained once the maximum efficiency for a given environment is known and an estimate for the collision parameter has been determined.