Balancing speedup and accuracy in smart city parallel applications