Tested on Apple M1 Pro
with rexxcps 2.2 15 Mar 2025

To test the impact of extensions on performance
replace
#ifndef DISABLE_EXTENSIONS
by
#ifdef DISABLE_EXTENSIONS

or
#define DISABLE_EXTENSIONS
at the begining of each file
(DISABLE_EXTENSIONS is not defined in a header file)


Extensions that can be disabled:
    Messages String/Text polymorphism
    BIFs String/Text polymorphism
    Overriding using TheFunctionsDirectory

rexxcps with #define CHECKOREFS
    without IPO     18958514 REXX clauses per second
    with IPO        20062112 REXX clauses per second
(CHECKOREFS has an impact on performance)

The rest of the tests are without CHECKOREFS.


-----------------
Executor with IPO
-----------------
rexx rexxcps
24630643 REXX clauses per second
24291754 REXX clauses per second
24762384 REXX clauses per second
24679597 REXX clauses per second
24095689 REXX clauses per second
average 24492013


------------------------------------------
Executor with IPO, with DISABLE_EXTENSIONS
------------------------------------------
rexx rexxcps
25324320 REXX clauses per second
25079586 REXX clauses per second
24792589 REXX clauses per second
24815969 REXX clauses per second
25075519 REXX clauses per second
average 25017596


----------
ooRexx 4.2
----------
rexx rexxcps
24210828 REXX clauses per second
24310159 REXX clauses per second
24557997 REXX clauses per second
24467865 REXX clauses per second
24689042 REXX clauses per second
average 24447178


---------------
ooRexx 5.1 beta
---------------
rexx rexxcps
24500656 REXX clauses per second
24747269 REXX clauses per second
24680795 REXX clauses per second
24738534 REXX clauses per second
24716950 REXX clauses per second
average 24676840


------------
regina 3.9.7
------------
rexx rexxcps
23268639 REXX clauses per second
23246371 REXX clauses per second
23225387 REXX clauses per second
23230261 REXX clauses per second
23230027 REXX clauses per second
average 23240137


-----------------
Executor with IPO
-----------------
rexx left.rex
n = 10
not interpreted
0.365345
0.366459
0.369682
0.365400
0.365322
0.366356
0.369012
0.365205
0.364485
0.365165
average 0.3662431
interpreted
0.604550
0.606689
0.609708
0.606319
0.604822
0.604726
0.604321
0.604486
0.605314
0.606055
average 0.605699    WHY 65% slower??? should be equivalent to "not interpreted". ooRexx 4.2 and 5.1 have the same problem.
routine
0.364870
0.372025
0.366159
0.374095
0.365928
0.366272
0.365550
0.365857
0.366633
0.365138
average 0.3672527


------------------------------------------
Executor with IPO, with DISABLE_EXTENSIONS
------------------------------------------
rexx left.rex
n = 10
not interpreted
0.318788
0.321475
0.322139
0.321129
0.326858
0.323525
0.320610
0.321082
0.319911
0.320067
average 0.3215584   -0.045 (compared with "Executor with IPO")
interpreted
0.565298
0.563756
0.563523
0.563348
0.563432
0.569508
0.563514
0.564325
0.563736
0.565391
average 0.5645831   -0.041 (compared with "Executor with IPO")
routine
0.319543
0.318734
0.320916
0.320883
0.320170
0.320072
0.321808
0.326469
0.319203
0.320172
average 0.320797    -0.046 (compared with "Executor with IPO")


----------
ooRexx 4.2
----------
rexx left.rex
n = 10
not interpreted
0.387509
0.389149
0.387714
0.389972
0.387753
0.388420
0.388747
0.387036
0.387896
0.386419
average 0.3880615   +0.021 (compared with "Executor with IPO")
interpreted
0.642423
0.642801
0.642746
0.643415
0.642430
0.642569
0.641288
0.644577
0.656480
0.668995
average 0.6467724   +0.041 (compared with "Executor with IPO")
routine
0.386292
0.387018
0.385869
0.386931
0.387394
0.387444
0.387378
0.387198
0.390136
0.389929
average 0.3875589   +0.020 (compared with "Executor with IPO")


---------------
ooRexx 5.1 beta
---------------
rexx left.rex
n = 10
not interpreted
0.399206
0.399144
0.397951
0.399500
0.404042
0.398455
0.403712
0.405731
0.401223
0.398559
average 0.4007523   +0.035 (compared with "Executor with IPO")
interpreted
0.654119
0.651910
0.652009
0.651330
0.656566
0.654294
0.652895
0.656932
0.653612
0.653089
average 0.6536756   +0.048 (compared with "Executor with IPO")
routine
0.397375
0.398737
0.399881
0.405972
0.398064
0.397729
0.398711
0.398979
0.398298
0.398240
average 0.3991986   +0.032 (compared with "Executor with IPO")


------------
regina 3.9.7
------------
rexx left.rex
n = 10
not interpreted
0.509628
0.512369
0.510351
0.509995
0.510558
0.510135
0.513680
0.510970
0.511724
0.510382
average 0.5109792
interpreted
0.512786
0.510175
0.520869
0.514462
0.515635
0.527295
0.520410
0.511604
0.512675
0.512839
average 0.515875

Note: unlike ooRexx, interpreted is as fast as not interpreted.
