Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atoomic/perl5-benchmark
simple benchmark for Porting/bench.pl
https://github.com/atoomic/perl5-benchmark
Last synced: 5 days ago
JSON representation
simple benchmark for Porting/bench.pl
- Host: GitHub
- URL: https://github.com/atoomic/perl5-benchmark
- Owner: atoomic
- Created: 2017-09-26T22:56:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T19:54:54.000Z (over 5 years ago)
- Last Synced: 2024-11-18T19:04:51.006Z (2 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# perl5-benchmark
simple benchmark files for Porting/bench.pl
Porting/bench.pl tool from Dave Mitchell
http://www.nntp.perl.org/group/perl.perl5.porters/2014/11/msg222802.html
http://blogs.perl.org/users/rurban/2015/01/new-perl5-portingbenchpl.htmlSamples from: https://rt.perl.org/Public/Bug/Display.html?id=129990
Benchmark two different perl
```
./perl -Ilib Porting/bench.pl --benchfile=../129990-bench ../perl2/perl=blead ./perl=blead+patch
```with the file ../129990-bench containing this
```
# ……………….……………….……………….……………….
[
'package::simple' =>
{
desc => "simple one-word package name",
setup => 'sub foo {}',
code => "&{'foo'}"
},
'package::quote' =>
{
desc => "multi-part package name using single quotes",
setup => "sub xx'yy'zz'aa'bb'cc'foo {}",
code => qq(&{"xx'yy'zz'aa'bb'cc'foo"})
},
'package::colon' =>
{
desc => "multi-part package name using colons",
setup => "sub xx::yy::zz::aa::bb::cc::foo {}",
code => "&{'xx::yy::zz::aa::bb::cc::foo'}"
},
]
# ……………….……………….……………….……………….
```