<div dir="ltr"><div dir="ltr">On Tue, Dec 22, 2020 at 1:08 AM Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
Of the execution architectures Sista JIT is for practical purposes not yet implemented, a prototype, but may offer 2x to 4x of Cog.  Of the Squeak JS JITs I think that the send mapping isn’t implemented (am I right?).  But is the temp var mapping implemented? If so what difference does it make?  Context to Stack is about 1.5. Stack to Cog is about 6.<br></blockquote><div><br></div><div>None of that has been implemented in SqueakJS. The current JIT only gets rid of the generic bytecode decoding, plus it inlines small-int arithmetic.</div><div><br></div><div>However, that still gives an 8x increase in bytecode speed, which causes the send speed as measured by tinyBenchmarks to go up by 3.5x too. It also <i>feels</i> significantly faster with the JIT enabled.</div><div><br></div><div>See the comment on top of <a href="https://github.com/codefrau/SqueakJS/blob/main/jit.js" target="_blank">https://github.com/codefrau/SqueakJS/blob/main/jit.js</a></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Does this sound like overkill? If not, what should we choose as our mips measurer?  We want something that all VMs have to do somewhat similarly fairly early on system startup and we can correlate with stopwatches and macro benchmarks like the time taken for the Compiler package to recompile itself, etc.<br></blockquote><div><br></div><div>I like measuring all-over performance, and not adding any extra work.</div><div><br></div><div>Like, DateAndTime is pretty early in the startup list. It could remember the time its startup was invoked. Another class that comes later could set a LowPerformance flag if it took longer than x ms since DateAndTime was initialized.</div><div><br></div><div>I just tried that with ProcessorScheduler (see attachment). On Safari and a 5.3 image I get ImageStartMS = 133 ms, on Chrome 250 ms. On a fast VM I get 5 ms. So maybe if that takes longer than say 50 ms it could be considered low performance?</div><div><br></div><div>Vanessa</div><div> </div></div></div>