Update README.md

This commit is contained in:
David Lee 2024-07-26 06:36:34 -07:00 committed by GitHub
parent d23f71507e
commit 07548014f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,9 +20,9 @@ I can vouch that the m.bat/m.sh script in each folder builds working benchmark b
It is my intention to show each tool in its best light with respect to the benchmarks. If you know of better optimization flags or ways to improve the benchmark source code for a given tool, please feel free to submit a pull request or open an issue. That said, I want to avoid cheap hacks like using peek/poke in BASIC instead of variables. It is my intention to show each tool in its best light with respect to the benchmarks. If you know of better optimization flags or ways to improve the benchmark source code for a given tool, please feel free to submit a pull request or open an issue. That said, I want to avoid cheap hacks like using peek/poke in BASIC instead of variables.
The benchmarks include: The benchmarks include:
* sieve: The classic from BYTE Magazine that counts prime numbers. * sieve: The classic from BYTE Magazine that counts prime numbers. Measures array and loop performance.
* e: Computes the irrational number e to 192 digits. * e: Computes the irrational number e to 192 digits. Measures integer multiply/divide along with array and loop performance.
* ttt: proves you can't win at tic-tac-toe if the opponent is competent * ttt: proves you can't win at tic-tac-toe if the opponent is competent. Measures function call and stack access along with array and loop performance.
* tm: test malloc. This calls malloc/calloc/free in the C runtime to measure performance. It's C-only and many C compilers can't run it. * tm: test malloc. This calls malloc/calloc/free in the C runtime to measure performance. It's C-only and many C compilers can't run it.
To run the compilers on Windows, use the m.bat script in each folder. Sometimes m.bat is in a subfolder named "bin" or "code". On Linux or MacOS use m.sh. You may need to "chmod 777 m.sh" before you can invoke it. For example (on Windows): To run the compilers on Windows, use the m.bat script in each folder. Sometimes m.bat is in a subfolder named "bin" or "code". On Linux or MacOS use m.sh. You may need to "chmod 777 m.sh" before you can invoke it. For example (on Windows):