The Trunk: System-tpr.974.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: System-tpr.974.mcz

commits-2
tim Rowledge uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-tpr.974.mcz

==================== Summary ====================

Name: System-tpr.974
Author: tpr
Time: 6 November 2017, 2:58:41.610598 pm
UUID: 361edb95-23ce-4ab1-b1c2-32b8382265c5
Ancestors: System-eem.973

Add as test for whether we are running on a slower system. Currently use an ARM cpu or SqueakJS as the discriminator, but future options might well include checking for Cog/Sista or even running an actual test and caching the result

=============== Diff against System-eem.973 ===============

Item was added:
+ ----- Method: SmalltalkImage>>isLowerPerformance (in category 'system attributes') -----
+ isLowerPerformance
+ "Some operations - TestCases for example - need an idea of the typical performance of the system on which they are being performed. For now we will simply assert that running on an ARM cpu or as a SqueakJS instance is enough of a discriminator. Options for the future might also involve whether the vm is a full Cog or Sisata system, even actually measuring the performance at some point to be sure"
+ ^ (self platformSubtype beginsWith: 'arm') "Raspberry PI for example"
+ or: [self platformName = 'Web'] "SqueakJS"!