I thought this topic is closed.
But if it was revived, I added another method for
make-list.
However, I think the result can be improved if some other method is used instead of
(repeat.
Pairs1 and Pairs2 code inside of test lisp.
Here are the results:
_$ (PairupTest)
Testing with int list of 95 length, and counter of 991
Benchmarking .................. done for 2048 iterations. Sorted from fastest.
Statement Increment Time(ms) Normalize Relative
--------------------------------------------------------------------------------
(PAIRS1 L1 L2 N) 2048 1500 1500 26.33
(PAIRS2 L1 L2 N) 2048 1608 1608 24.56
(PAIRUP10 L1 L2 N) 2048 1937 1937 20.39
(PAIRLISTS3 L1 L2 N) 1024 1048 2096 18.84
(PAIRUP9 L1 L2 N) 1024 1062 2124 18.59
(PAIRLISTS L1 L2 N) 1024 1686 3372 11.71
(PAIRLISTS2 L1 L2 N) 1024 1702 3404 11.60
(PAIRUP7 L1 L2 N) 512 1093 4372 9.03
(PAIRUP8 L1 L2 N) 512 1109 4436 8.90
(PAIRUP6 L1 L2 N) 512 1296 5184 7.62
(PAIRUP5 L1 L2 N) 512 1765 7060 5.59
(PAIRUP2 L1 L2 N) 512 1861 7444 5.30
(PAIRUP4 L1 L2 N) 512 1890 7560 5.22
(EEA-PAIRUP L1 L2 N) 256 1109 8872 4.45
(PAIRCAB L1 L2 N) 256 1188 9504 4.15
(PAIRS L1 L2 N) 256 1283 10264 3.85
(PAIRUP3 L1 L2 N) 128 1937 30992 1.27
(PAIRUP1 L1 L2 N) 64 1234 39488 1.00
--------------------------------------------------------------------------------