[erlang-questions] extrange output of  on erlang

Angel clist@REDACTED
Sun Feb 7 21:13:57 CET 2010


This is going better over the time...

On Domingo, 7 de Febrero de 2010 16:47:20 usted escribió:
> For some reason the format strings in test/1 contain the  character
> so it is naturally printed out. As far as I can see there are two
> reasons to why Joel did not see it hwile you did:
> 
> - Something happened when copying the files to introduce them.

I re-downloaded the file form github, still those  are printed..

This issue is only visible on the erlang console:

sinchan@REDACTED:~/Documentos/Personal/Erlang/Code> erl
Erlang R13B03 (erts-5.7.4) [source] [rq:1] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.7.4  (abort with ^G)
1> arr:test().
Fixed-size array: get:    11577µs, set:    24369µs
Extensible array: get:    12717µs, set:    24135µs
Tuple:            get:     1222µs, set:   489969µs
Tree:             get:    10605µs, set:    99338µs
ok
2> q().
ok

While almost the  and the time direfences are gone doing:


sinchan@REDACTED:~/Documentos/Personal/Erlang/Code> erl -noshell -run arr test -run init stop
Fixed-size array: get:     5324µs, set:    11211µs
Extensible array: get:     5327µs, set:    10682µs
Tuple:            get:     1220µs, set:   440337µs
Tree:             get:     9436µs, set:   100457µs
sinchan@REDACTED:~/Documentos/Personal/Erlang/Code>



> - On Joel's machine non.ASCII characters were not printed out in his
> terminal window while they are in yours.
Maybe i sitll trying to open the file with diferent codes to see..

> 
> What is more interesting is that on your machine the relative times
> are different.

Now observe the preceding console printout, the time diferences are on the same machine
slow on erlang console but faster whout shell??

Now im very upset with this mesurements! :-(






> 
> Robert
> 
> On 7 February 2010 15:29, Angel <clist@REDACTED> wrote:
> > Hi
> >
> > just reading some Joél redmont articles.
> >
> > He did and array vs tree comparison and blogged the results
> > so im just downloaded his code and tried...
> >
> > (code attached)
> >
> > Joel's test shows:
> >
> > 27> arr:test().
> >
> > Fixed-size array: get: 2921us, set: 5902us
> > Extensible array: get: 3336us, set: 8144us
> > Tuple: get: 632us, set: 107467us
> > Tree: get: 4321us, set: 45256us
> > ok
> >
> >
> > Where me machine shows:
> >
> > 1> arr:test().
> >
> > Fixed-size array: get:    11586µs, set:    24969µs
> > Extensible array: get:    11586µs, set:    23787µs
> > Tuple:            get:     1223µs, set:   491196µs
> > Tree:             get:     9480µs, set:   101000µs
> > ok
> >
> >
> > I cant explain where that strange  come... (tested on openSUSE 11.2
> > Konsole)
> >
> > Anyone can tell me what's wrong on my machine???
> >
> >
> >
> >
> >
> >
> > --
> > Most people know C is not so high level....
> >                ...Everybody else just got assembler overdose
> >
> >
> >
> > ________________________________________________________________
> > erlang-questions (at) erlang.org mailing list.
> > See http://www.erlang.org/faq.html
> > To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
> 



Most people know C is not so high level....
                ...Everybody else just got assembler overdose
 


More information about the erlang-questions mailing list