The first alternative is correct.
The implementation of the machines increased the efficiency of capitalist production by increasing the productivity that the machines induced.
From the implementation of the machines, more goods were produced in a shorter time and with a smaller amount of labor. This has reduced production costs and increased production efficiency. As a result, profit has increased.