This paper provides the architecture of the sampling measurement system based on the mask matching for the purpose to design and achieve the sampling measurement system scientially.This architecture divides the system into three levels which are achieved by java including message collecting,sampling,saving.This paper mainly analyzes execution time of program about the message sampling and saving level when it adopts different temporary-memory ways,and compares the lo...