| 1 | package Bencher::Scenario::IPCRun::run_overhead; | ||
| 2 | |||
| 3 | 1 | our $DATE = '2017-01-25'; # DATE | |
| 4 | 1 | our $VERSION = '0.002'; # VERSION | |
| 5 | |||
| 6 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | our $scenario = { | |
| 10 | summary => "Benchmark overhead of run() vs core's system()", | ||
| 11 | modules => { | ||
| 12 | }, | ||
| 13 | participants => [ | ||
| 14 | { | ||
| 15 | fcall_template => 'IPC::Run::run(["true"]) or die', | ||
| 16 | }, | ||
| 17 | { | ||
| 18 | name => 'system', | ||
| 19 | code_template => 'system("true"); $? and die', | ||
| 20 | }, | ||
| 21 | ], | ||
| 22 | }; | ||
| 23 | |||
| 24 | 1 | 1; | |
| 25 | # ABSTRACT: Benchmark overhead of run() vs core's system() | ||
| 26 | |||
| 27 | __END__ | ||