Re: [Pharo-users] Anonymous classes performances

2017-06-19 Thread Ben Coman
@all, Is there some way to disable garbage collection during such benchmarks? cheers -ben On Sun, Jun 18, 2017 at 3:51 AM, Steven Costiou wrote: > I spent my day testing and comparing execution speed between classes and > anonymous subclasses when i tried to compare two sets of values between

Re: [Pharo-users] Anonymous classes performances

2017-06-17 Thread Steven Costiou
I spent my day testing and comparing execution speed between classes and anonymous subclasses when i tried to compare two sets of values between pharo classes: they also differ. In fact it seems that every instruction has a different execution speed if we run it enough times. So it seems impossib

Re: [Pharo-users] Anonymous classes performances

2017-06-16 Thread Steven Costiou
You can find the code below. I just change the call to m by m1 to test the two methods. I started again in a fresh pharo 6 image and now the results seem all similar for the following code. I will do all my tests again to see if it was my fault but it takes a lot of time (2 hours for each full te

Re: [Pharo-users] Anonymous classes performances

2017-06-16 Thread Denis Kudriashov
Hi Steven. Could you show code which you measure? 2017-06-16 17:17 GMT+02:00 Steven Costiou : > I have been playing a bit with anonymous subclasses, and instances of anon > subclasses seem slower to execute code than "regular" subclasses instances, > but sometimes they reach equivalent performan

[Pharo-users] Anonymous classes performances

2017-06-16 Thread Steven Costiou
I have been playing a bit with anonymous subclasses, and instances of anon subclasses seem slower to execute code than "regular" subclasses instances, but sometimes they reach equivalent performances (for code defined in anon-subclasses). I don't understand why. I have a class A with a method m.