User Tools

Site Tools


programming:general:phpvspythonvsperl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
programming:general:phpvspythonvsperl [2008/02/05 16:39] crustymonkeyprogramming:general:phpvspythonvsperl [2008/04/14 13:55] (current) crustymonkey
Line 367: Line 367:
 ===== Just For Fun... ===== ===== Just For Fun... =====
 ...one of my co-workers whipped up this C code which uses ''libpcre'' just to see how it would perform versus the interpreted languages.  I'm not including it in the main results because this is a test of 3 interpreted languages speed capabilities, but I thought I would drop the results in here just for fun. ...one of my co-workers whipped up this C code which uses ''libpcre'' just to see how it would perform versus the interpreted languages.  I'm not including it in the main results because this is a test of 3 interpreted languages speed capabilities, but I thought I would drop the results in here just for fun.
 +
  
  
Line 415: Line 416:
                                 counter++;                                 counter++;
                                 break;                                 break;
-                        } 
-                } 
-        } 
- 
-        if (!(f = fopen(logfile, "r"))) return 1; 
- 
-        while ((s = fgets(buf, sizeof(buf), f))) { 
-                for (i = 0; pat[i]; i++) { 
-                        match = pcre_exec(re[i], 0, s, strlen(s), 
-                                        0, 0, ovec, 30); 
-                        if (match > 0) { 
-                                counter++; 
                         }                         }
                 }                 }
programming/general/phpvspythonvsperl.1202229556.txt.gz · Last modified: 2008/02/05 16:39 by crustymonkey