<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p><span style="font-size: 12pt;">Wow, 210 microseconds per run here ...</span><span style="font-size: 12pt;"> '4,750 per second. 210 microseconds per run. 0.77984 % GC time.'</span><br>
</p>
<div dir="ltr">
<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;">
<p>Any idea where I could start investigating this delay?</p>
<p><br>
</p>
<p>For comparison, this is what I get from the shell:</p>
<p><br>
</p>
<p></p>
<div></div>
<div>$ time for i in {1..1000}; do cat erw7cadzaljrexm3vjka1kl5t; done</div>
<div><br>
</div>
<div>real    0m10.353s</div>
<div>user    0m0.875s</div>
<div>sys     0m7.313s</div>
<div></div>
<br>
<p></p>
<p>So effectively about 8 milli(!)seconds per run ... But you cannot compare this, can you?</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</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 tim Rowledge <tim@rowledge.org><br>
<b>Gesendet:</b> Dienstag, 14. Januar 2020 00:38:07<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">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" id="LPlnk965482" previewremoved="true">
http://www.rowledge.org/tim</a><br>
"#define QUESTION ((bb) || !(bb))  - Shakespeare."<br>
<br>
<br>
<br>
</div>
</span></font></div>
</body>
</html>