calc costing time of creating instances