From 420fb32bdbae46a55acf5046efdbfb2629aa41a6 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 26 Feb 2015 16:03:32 +0200 Subject: [PATCH] - Added a README file. --- Makefile | 3 +++ README.rst | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 README.rst diff --git a/Makefile b/Makefile index 2404720..33170fa 100644 --- a/Makefile +++ b/Makefile @@ -8,3 +8,6 @@ c: prime.c clean: rm -r a.out __pycache__ + +test: + echo 'Not yet implemented.' diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..4259347 --- /dev/null +++ b/README.rst @@ -0,0 +1,38 @@ +The prime benchmark +=================== + +Bencmarking programming languages by running program to find the first X prime +numbers. The algorithm is naive and should be implemented the same regardless of +the language. + +Added languages +--------------- + +- C +- Lua +- PHP +- Python3 + +Usage +----- +Build: :: + + make + +Clean: :: + + make clean + +Test: :: + + make test + + +History +------- + +When starting to learn Lua, I wrote a simple program to excersize the table data +structure. But I had difficulties expressing what I wanted so I first wrote the +program in Python. After I had the program written in both languages I did the +obvious thing, I timed them. From there on Barak implemented the program in PHP +and we implemented it in C. We hope to have many more languages tested. -- GitLab