<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op do 9 jan. 2020 om 00:47 schreef Graeme Geldenhuys <<a href="mailto:mailinglists@geldenhuys.co.uk">mailinglists@geldenhuys.co.uk</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 07/01/2020 1:28 am, Vojtěch Čihák via fpc-pascal wrote:<br>
> I found this article: <a href="https://drewdevault.com/2020/01/04/Slow.html" rel="noreferrer" target="_blank">https://drewdevault.com/2020/01/04/Slow.html</a><br>
> but FPC is missing, so I wrote simple:<br>
<br>
On a side note, and for comparison... According to that website, he/she<br>
tested Java and got the following:<br>
<br>
Lang Exec time Total syscalls Unique syscalls Size (KiB)<br>
Java 0.07s real 226 26 15743KiB<br>
<br>
So the resulting Java.class is 16 MByte in size!!! How?<br>
<br>
I did the same on my system here with the latest OpenJDK 8 & 11.0.5. The<br>
resulting size of the class file was identical with Java 8 & 11 and was<br>
as follows:<br>
<br>$ javac Test.java<br>
<br>
$ ls -l Test*<br>
-rw-rw-r-- 1 graemeg graemeg 413 Jan 8 22:54 Test.class<br>
-rw-rw-r-- 1 graemeg graemeg 115 Jan 8 22:53 Test.java<br>
<br>
<br>
My resulting class file is only 413 bytes. So how does that website<br>
owner get 16 MByte?<br><br></blockquote><div><br></div><div>Did you create a static program? Otherwise you must include the dynamic libraries it uses. <br></div><div><br></div><div>Vincent<br></div></div></div>