OpenSCAD performance mystery

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenSCAD performance mystery

atnbueno
Hello there.

I have recently discovered that OpenSCAD runs consistently four times faster in my work computer than my computer at home. The "mystery" in the subject line is that the specs seem to indicate an advantage in the opposite direction:

WORK
CPU: Intel Core i5 4570S (2.9/3.6 GHz, April 2013) cpuboss.com/cpu/Intel-Core-i5-4570S#specs
RAM: 24 GB

HOME
CPU: Intel Core i7 6700K (4/4.2 GHz, July 2015) cpuboss.com/cpu/Intel-Core-i7-6700K#specs
RAM: 32 GB

Same operating system (Windows 10 x64) on both. Not considering number of cores and GPU because... OpenSCAD, you know :-)

This CPU comparison puts my work unit above my home one in single-core performance, but not enough to explain the 400% difference:

Any ideas?


--
Regards from Spain,
Antonio



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD performance mystery

macdarren
I can't explain this but you are not alone...I have two MacBook Pros, that
are generationally apart one being from 2011 another from 2014 other than
that same OS, 16GB RAM, i7 CPU (generation apart clock rates 2.3 old vs 3.1
new), both SSD (new one is much faster) only real difference is the graphics
cards one AMD older the other Intel new, they spec similarly, and I have
been told the GPU is not really important and again they should be similar
performance.

Yet the older machine will almost always render faster both preview and
final STL creation.  

Sometimes the difference is minor a few seconds or on that order but for
some high $fn number renders it can be minutes on a 2 to 5  minute
process...so half as fast....I can't explain it but sometimes I just remote
into the older machine and render there.  This frees up my working laptop
and faster results too....I just expected the much faster clock and newer
CPU on the new machine to quicker....

Odd..maybe a quirk in how I code...which is probably the least efficient
method possible and since I never really try top optimize for speed and
frankly don't understand scad enough to really know how anyway...or maybe
something in the Mac or MacOS.....generally the machines feel pretty similar
except for disk speed and scad.



--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD performance mystery

doug.moen
In reply to this post by atnbueno
This is a wild guess, but how fast is the memory in the two machines? If you are unioning large meshes, it seems to me that it's easy to thrash the in-cpu memory cache, in which case the rendering speed is dominated by how fast the CPU can access RAM.

On 11 February 2018 at 13:44, Antonio Bueno <[hidden email]> wrote:
Hello there.

I have recently discovered that OpenSCAD runs consistently four times faster in my work computer than my computer at home. The "mystery" in the subject line is that the specs seem to indicate an advantage in the opposite direction:

WORK
CPU: Intel Core i5 4570S (2.9/3.6 GHz, April 2013) cpuboss.com/cpu/Intel-Core-i5-4570S#specs
RAM: 24 GB

HOME
CPU: Intel Core i7 6700K (4/4.2 GHz, July 2015) cpuboss.com/cpu/Intel-Core-i7-6700K#specs
RAM: 32 GB

Same operating system (Windows 10 x64) on both. Not considering number of cores and GPU because... OpenSCAD, you know :-)

This CPU comparison puts my work unit above my home one in single-core performance, but not enough to explain the 400% difference:

Any ideas?


--
Regards from Spain,
Antonio



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD performance mystery

atnbueno
Mistery solved!

Doug's "wild guess" was spot on. The NB frequency (checked with CPU-Z) of my work computer is 4 times the one from my home computer. 

One more thing to take into account next year when I replace this machine :-)

In the meantime, the new OpenSCAD window at home is a remote desktop connection to work :-D


2018-02-11 21:33 GMT+01:00 doug moen <[hidden email]>:
This is a wild guess, but how fast is the memory in the two machines? If you are unioning large meshes, it seems to me that it's easy to thrash the in-cpu memory cache, in which case the rendering speed is dominated by how fast the CPU can access RAM.

On 11 February 2018 at 13:44, Antonio Bueno <[hidden email]> wrote:
Hello there.

I have recently discovered that OpenSCAD runs consistently four times faster in my work computer than my computer at home. The "mystery" in the subject line is that the specs seem to indicate an advantage in the opposite direction:

WORK
CPU: Intel Core i5 4570S (2.9/3.6 GHz, April 2013) cpuboss.com/cpu/Intel-Core-i5-4570S#specs
RAM: 24 GB

HOME
CPU: Intel Core i7 6700K (4/4.2 GHz, July 2015) cpuboss.com/cpu/Intel-Core-i7-6700K#specs
RAM: 32 GB

Same operating system (Windows 10 x64) on both. Not considering number of cores and GPU because... OpenSCAD, you know :-)

This CPU comparison puts my work unit above my home one in single-core performance, but not enough to explain the 400% difference:

Any ideas?


--
Regards from Spain,
Antonio



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org




--
Saludos,
Antonio



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org