Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
ThePrimeBenchMark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
ThePrimeBenchMark
Commits
420fb32b
Commit
420fb32b
authored
10 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Added a README file.
parent
d1f20f12
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+3
-0
3 additions, 0 deletions
Makefile
README.rst
+38
-0
38 additions, 0 deletions
README.rst
with
41 additions
and
0 deletions
Makefile
+
3
−
0
View file @
420fb32b
...
@@ -8,3 +8,6 @@ c: prime.c
...
@@ -8,3 +8,6 @@ c: prime.c
clean
:
clean
:
rm
-r
a.out __pycache__
rm
-r
a.out __pycache__
test
:
echo
'Not yet implemented.'
This diff is collapsed.
Click to expand it.
README.rst
0 → 100644
+
38
−
0
View file @
420fb32b
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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment