nashorn/src/jdk/nashorn/internal/runtime/regexp/joni/bench/BenchSeveralRegexps.java
changeset 18011 05a7d1f1746a
parent 18010 604faee85350
parent 17815 b72ae39e1329
child 18012 03261c9bd428
equal deleted inserted replaced
18010:604faee85350 18011:05a7d1f1746a
     1 package jdk.nashorn.internal.runtime.regexp.joni.bench;
       
     2 
       
     3 public class BenchSeveralRegexps extends AbstractBench {
       
     4     public static void main(String[] args) throws Exception {
       
     5         int BASE = 1000000;
       
     6 
       
     7         new BenchSeveralRegexps().benchBestOf("a"," a",10,4*BASE);
       
     8 
       
     9         new BenchSeveralRegexps().benchBestOf(".*?=","_petstore_session_id=1b341ffe23b5298676d535fcabd3d0d7; path=/",10,BASE);
       
    10 
       
    11         new BenchSeveralRegexps().benchBestOf("^(.*?)=(.*?);","_petstore_session_id=1b341ffe23b5298676d535fcabd3d0d7; path=/",10,BASE);
       
    12 
       
    13         new BenchSeveralRegexps().benchBestOf(".*_p","_petstore_session_id=1b341ffe23b5298676d535fcabd3d0d7; path=/",10,4*BASE);
       
    14 
       
    15         new BenchSeveralRegexps().benchBestOf(".*=","_petstore_session_id=1b341ffe23b5298676d535fcabd3d0d7; path=/",10,4*BASE);
       
    16     }
       
    17 }