[squeak-dev] The Inbox: ShoutCore-ct.78.mcz
Thiede, Christoph
Christoph.Thiede at student.hpi.uni-potsdam.de
Tue Jan 14 17:04:07 UTC 2020
> 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
But to be fair, I was testing on Windows Subsystem for Linux, which may be slower ...
If you have any other ideas how to trace this delay, let me know and I will try to test them :)
Best,
Christoph
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Levente Uzonyi <leves at caesar.elte.hu>
Gesendet: Dienstag, 14. Januar 2020 14:00:09
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] The Inbox: ShoutCore-ct.78.mcz
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."
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200114/d9b88e67/attachment.html>
More information about the Squeak-dev
mailing list
|