When data fits into the memory Apache Spark runs faster.Spark runs applications up to 100x faster in memory and 10x faster on disk than Hadoop.Because of reducing the number of read/write cycle to disk and storing intermediate data in-memory Spark makes it possible.