Skip to content

Commit b84a26c

Browse files
committed
Merge branch 'master' of github.com:dkechag/perl_benchmark
2 parents cb78251 + df9786a commit b84a26c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ In some systems you might need to install some modules (XML etc) with the packag
2424
* **Digest:** Creates MD5, SH1 and SHA-512 digests of a large string. 500x
2525
* **HTML::FormatText:** Converts HTML to text for 2 sample wiki pages 5 times x 2 layouts each.
2626
* **Math::DCT:** Does 1 million 8x8 DCT transforms and 50k 32x32 transforms.
27-
* **Moose:** Creates 150k small Moose objects. Not the most useful benchmark (Moose is too slow, surely you are using Moo/Mouse etc instead?), but it is still quite commonly used.
28-
* **Primes:** Calculates all primes up to 10 million, 5 times. Small number with repeat was chosen to keep low memory (this is a Perl function).
27+
* **Moose:** Creates 150k small Moose objects. Not the most useful benchmark, Moose is too slow (surely you are using Moo/Mouse etc instead?), but it is still quite commonly used.
28+
* **Primes:** Calculates all primes up to 10 million, x5 times. Small number with repeat was chosen to keep low memory (this is a pure Perl function).
2929
* **Regex/Replace:** Concatenates 3 wiki pages into a byte string then counts matches of 3 typical regexes (for names, emails, URIs) and replaces html tags with their contents (starting with the innermost). 25 repeats.
30-
* **Regex/Replace utf8:** Exactly the same as above, but reads into a utf8 string. Perl version can make a big difference, as unicode behaviour has changed.
31-
* **Test Moose:** Runs 110 tests from the Moose 2.2201 test suite. The least CPU-intensive test, most of the time will loading the interpreter and the Moose module each time, which is representative of default perl unit test suite runs.
30+
* **Regex/Replace utf8:** Exactly the same as above, but reads into a utf8 string. Perl version can make a big difference, as unicode behaviour has changed (old Perl versions are faster but less strict in general).
31+
* **Test Moose:** Runs 110 tests from the Moose 2.2201 test suite. The least CPU-intensive test, most of the time will be spent loading the interpreter and the Moose module for each test, which is behaviour representative of how a perl test suite runs by default.
32+
33+
### Notes
34+
35+
The benchmark suite was created to compare the performance of various cloud offerings. See the [relevant perl blog post](http://blogs.perl.org/users/dimitrios_kechagias/2022/03/cloud-provider-performance-comparison-gcp-aws-azure-perl.html).
3236

3337
### License
3438

0 commit comments

Comments
 (0)