Rick Troth, I wonder if you could run this small C program on a Z series machine?
The program is on https://start.oscar-jol.com/fast-safe-c-strings It is called Strcpy_Speed_Test.c on the above page I have run it on Windows and the JCC compiler on Hercules MVS The Windows code is about 6 times slower than a straight memcpy. The Hercules C code is about 30-40 times slower. With Google using terrawatts of electricity and billions of gallons of cooling water speed of processing is vital. Presumably Microsoft uses similar amounts of both. I would imagine that a lot of string processing is done shifting billions (?) of text based emails around the world each day. A similar test with PL/I F on Hercules showed code of a single MVC which is about as fast as you can get. I also notice that the White House is suggesting that programs be written in something other than C. C is too dangerous. Clem Clarke "In 2023, Google's data centers consumed 24TWh of electricity, translating to 7-10 percent of the estimated 240–340TWh consumed by data centers globally, and less than 0.1 percent of the estimated 25,000TWh of total global electricity," the report said. ============== Here are the results of my tests: Borland C Copying a 200 Byte Length String 1000000 times =============================================== Time Elapsed Time Speed Ratio STRCPY 188 1.000 MEMCPY 31 6.065 MEMCPY (Variable Length) 31 6.065 GCC Windows Copying a 200 Byte Length String 1000000 times =============================================== Time Elapsed Time Speed Ratio STRCPY 61 1.000 MEMCPY 12 5.083 MEMCPY (Variable Length) 12 5.083 JCC Hercules MVS Copying a 200 Byte Length String 100000 times =============================================== Time Elapsed Time Speed Ratio STRCPY 1196 1 MEMCPY 28 42.714 MEMCPY (Variable Length) 35 34.171 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN