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
55bdb1c4
Commit
55bdb1c4
authored
10 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Fixed typos.
- Made the PHP script executable.
parent
f55f947e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.rst
+2
-2
2 additions, 2 deletions
README.rst
prime.php
+1
-0
1 addition, 0 deletions
prime.php
with
3 additions
and
2 deletions
README.rst
+
2
−
2
View file @
55bdb1c4
The prime benchmark
The prime benchmark
===================
===================
Bencmarking programming languages by running program to find the first X prime
Benc
h
marking programming languages by running program to find the first X prime
numbers. The algorithm is naive and should be implemented the same regardless of
numbers. The algorithm is naive and should be implemented the same regardless of
the language.
the language.
...
@@ -31,7 +31,7 @@ Test: ::
...
@@ -31,7 +31,7 @@ Test: ::
History
History
-------
-------
When starting to learn Lua, I wrote a simple program to ex
c
er
siz
e the table data
When starting to learn Lua, I wrote a simple program to exer
cis
e the table data
structure. But I had difficulties expressing what I wanted so I first wrote the
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
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
obvious thing, I timed them. From there on Barak implemented the program in PHP
...
...
This diff is collapsed.
Click to expand it.
prime.php
100644 → 100755
+
1
−
0
View file @
55bdb1c4
#!/usr/bin/env php
<?php
<?php
...
...
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