@Test
public void testRe() throws InterruptedException{
Pattern re = Pattern.compile(".*(d|e|cart|jinjian|.*)");
for(int i = 0 ; i < 10000 ; i++)
re.matches("aajinjianaksdjfl");
System.gc();
Thread.sleep(5000);
boolean result = false;
long s = System.nanoTime();
for(int i = 0 ; i < 1000000 ; i++)
result = re.matches("aajinjianaksdjflaajinjianaksdjflaajinjianaksdjfl");
long e = System.nanoTime();
System.out.println( TimeUnit.NANOSECONDS.toMillis( e - s) );
System.out.println(result);
}
--
You received this message because you are subscribed to the Google Groups "re2j-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to re2j-discuss...@googlegroups.com.
To post to this group, send email to re2j-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/re2j-discuss/62f5768e-60c6-48ed-9cfa-bb9b3f6e85b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/re2j-discuss/5bfe56d5-dbb3-4544-9613-63ab16e3cc07%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "re2j-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to re2j-discuss...@googlegroups.com.
To post to this group, send email to re2j-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/re2j-discuss/be70de24-9085-4731-adaa-9cf38bd410ab%40googlegroups.com.