Measures cost of various operations in different Python implementations