Small-ruleset regular expression matching on GPGPUs: quantitative performance analysis and optimization