<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>> <span style="font-size:12pt">Well, it's not the same as just opening and closing a file. But for </span><span style="font-size:12pt">comparison here's the same on my machine:</span></p>
<div>> </div>
<div>> $ touch foo</div>
<div>> $ time for i in {1..1000}; do cat foo; done</div>
<div>> </div>
<div>> real    0m0,839s</div>
<div>> user    0m0,594s</div>
<div>> sys     0m0,304s</div>
<div><br>
</div>
<div>But to be fair, I was testing on Windows Subsystem for Linux, which may be slower ...</div>
<div><br>
</div>
<div>If you have any other ideas how to trace this delay, let me know and I will try to test them :)</div>
<div><br>
</div>
<div>Best,</div>
<div>Christoph</div>
<p></p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Levente Uzonyi <leves@caesar.elte.hu><br>
<b>Gesendet:</b> Dienstag, 14. Januar 2020 14:00:09<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] The Inbox: ShoutCore-ct.78.mcz</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On Tue, 14 Jan 2020, Thiede, Christoph wrote:<br>
<br>
> <br>
> Wow, 210 microseconds per run here ... '4,750 per second. 210 microseconds per run. 0.77984 % GC time.'<br>
> <br>
> Any idea where I could start investigating this delay?<br>
> <br>
> <br>
> For comparison, this is what I get from the shell:<br>
> <br>
> <br>
> $ time for i in {1..1000}; do cat erw7cadzaljrexm3vjka1kl5t; done<br>
> <br>
> real    0m10.353s<br>
> user    0m0.875s<br>
> sys     0m7.313s<br>
> <br>
> So effectively about 8 milli(!)seconds per run ... But you cannot compare this, can you?<br>
<br>
Well, it's not the same as just opening and closing a file. But for <br>
comparison here's the same on my machine:<br>
<br>
$ touch foo<br>
$ time for i in {1..1000}; do cat foo; done<br>
<br>
real    0m0,839s<br>
user    0m0,594s<br>
sys     0m0,304s<br>
<br>
<br>
Levente<br>
<br>
> <br>
> <br>
> Best,<br>
> <br>
> Christoph<br>
> <br>
> _________________________________________________________________________________________________________________________________________________________________________________________________________________________________<br>
> Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von tim Rowledge <tim@rowledge.org><br>
> Gesendet: Dienstag, 14. Januar 2020 00:38:07<br>
> An: The general-purpose Squeak developers list<br>
> Betreff: Re: [squeak-dev] The Inbox: ShoutCore-ct.78.mcz  <br>
> Just for fun I tried that on a Pi3+ with SSD and got<br>
> a) a halt because the first [ is in the wrong place, should be<br>
>  | filename |<br>
> [filename := UUID new asString36.<br>
> FileStream newFileNamed: filename do: [ :file | ].<br>
> [ FileStream fileNamed: filename do: [ :file | ] ] bench ]<br>
>         ensure: [ FileDirectory default deleteFileNamed: filename ].<br>
> <br>
> b)  '9,710 per second. 103 microseconds per run. 1.9 % GC time.' so 1/12th the performance.<br>
> <br>
> tim<br>
> --<br>
> tim Rowledge; tim@rowledge.org; <a href="http://www.rowledge.org/tim">http://www.rowledge.org/tim</a><br>
> "#define QUESTION ((bb) || !(bb))  - Shakespeare."<br>
> <br>
> <br>
> <br>
> <br>
></div>
</span></font>
</body>
</html>