How fast is Euphoria's string processing?

new topic     » topic index » view thread      » older message » newer message

Hi all ~

am not a Euphoria user (yet) but have come across claims that Euphoria is
supposedly very fast
when it comes to string processing (and, of course, the programmer knows what
(s)he is doing).

Over on the Rebol mailing list they have just started a friendly mini "shootout"
between Java
and Rebol, using the tiny Java program below. I was wondering if one of the
gurus on this forum
could whip up the equivalent in Euphoria for comparison purposes?

Thanks to all who do!
Cheers
Kai




//--------------------------------------------------------------------------
public class Prova1 {
    public Prova1() {
        System.out.println("START...");
        StringBuffer finale = new StringBuffer();
        for(int i=1; i<10001; i++) {
            StringBuffer str = new StringBuffer();
            for(int j=1; j<501; j++) {
str.append(String.valueOf(i)).append(",").append(String.valueOf(j)).append("-");
            }
            finale.append(str.substring(1, 5));
        }
        System.out.println("COMPLETED!!!");
        System.out.println(finale.toString());
        System.out.println(finale.length());
    }
    public static void main(String[] args) {
        new Prova1();
    }
}

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu