The invention provides a method and device for improving the SSR violation-log statistical performance, and belongs to the technical field of computer safety. According to the method, violation-log data is written and stored based on a MongoDB database, and when violation-log statistics of SSR is carried out, the statistical performance is improved through a viewpoint of caching statistical results; when the statistical results are cached, segment caching is carried out according to the statistical results of different time interval lengths, and then according to query time periods set by a user, the cached statistical results of corresponding time periods are shown. When segment caching is carried out, uploaded violation logs or caching of the statistical results is counted according to the real time, the hour and the day respectively. According to the method and device, when a large quantity of violation logs are generated in the SSR, the statistical performance is improved, and userexperiences are improved.