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

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Tue Jan 14 11:45:42 UTC 2020


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?


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/85f1140e/attachment.html>


More information about the Squeak-dev mailing list