[squeak-dev] The Inbox: ShoutCore-ct.78.mcz

Levente Uzonyi leves at caesar.elte.hu
Tue Jan 14 13:00:09 UTC 2020


On Tue, 14 Jan 2020, Thiede, Christoph wrote:

> 
> Wow, 210 microseconds per run here ... '4,750 per second. 210 microseconds per run. 0.77984 % GC time.'
> 
> Any idea where I could start investigating this delay?
> 
> 
> For comparison, this is what I get from the shell:
> 
> 
> $ time for i in {1..1000}; do cat erw7cadzaljrexm3vjka1kl5t; done
> 
> real    0m10.353s
> user    0m0.875s
> sys     0m7.313s
> 
> So effectively about 8 milli(!)seconds per run ... But you cannot compare this, can you?

Well, it's not the same as just opening and closing a file. But for 
comparison here's the same on my machine:

$ touch foo
$ time for i in {1..1000}; do cat foo; done

real	0m0,839s
user	0m0,594s
sys	0m0,304s


Levente

> 
> 
> Best,
> 
> Christoph
> 
> _________________________________________________________________________________________________________________________________________________________________________________________________________________________________
> Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von tim Rowledge <tim at rowledge.org>
> Gesendet: Dienstag, 14. Januar 2020 00:38:07
> An: The general-purpose Squeak developers list
> Betreff: Re: [squeak-dev] The Inbox: ShoutCore-ct.78.mcz  
> Just for fun I tried that on a Pi3+ with SSD and got
> a) a halt because the first [ is in the wrong place, should be
>  | filename |
> [filename := UUID new asString36.
> FileStream newFileNamed: filename do: [ :file | ].
> [ FileStream fileNamed: filename do: [ :file | ] ] bench ]
>         ensure: [ FileDirectory default deleteFileNamed: filename ].
> 
> b)  '9,710 per second. 103 microseconds per run. 1.9 % GC time.' so 1/12th the performance.
> 
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> "#define QUESTION ((bb) || !(bb))  - Shakespeare."
> 
> 
> 
> 
>


More information about the Squeak-dev mailing list