Comparing totals shows how much the SPT sequence improves the simple objective.
Original total
Original total completion time is 13.
original=13
SPT total
SPT total completion time is 10.
SPT=10
Improvement
The improvement is 3.
improvement=3
Why SPT helps
Short jobs finish earlier, so they stop adding to the total completion-time sum.
short jobs finish earlier