Skip to content

Commit

Permalink
Build results of fe46cdd (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Sep 18, 2014
1 parent 08d8854 commit 16afef1
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 24 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Release history for Benchmark-CSV

0.001001 2014-09-18T10:21:56Z
[Bugfix]
- Dont require gettime, and if its not available, dont expose dependent methods

0.001000 2014-09-17T12:16:30Z
- First version.

8 changes: 4 additions & 4 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"provides" : {
"Benchmark::CSV" : {
"file" : "lib/Benchmark/CSV.pm",
"version" : "0.001000"
"version" : "0.001001"
}
},
"release_status" : "stable",
Expand All @@ -124,7 +124,7 @@
"web" : "https://github.com/kentnl/Benchmark-CSV"
}
},
"version" : "0.001000",
"version" : "0.001001",
"x_BuiltWith" : {
"modules" : {
"CPAN::Meta" : "2.142060",
Expand Down Expand Up @@ -635,7 +635,7 @@
"Dist::Zilla::Plugin::Git::Tag" : {
"branch" : null,
"signed" : 0,
"tag" : "0.001000-source",
"tag" : "0.001001-source",
"tag_format" : "%v-source",
"tag_message" : "v%v",
"time_zone" : "local"
Expand Down Expand Up @@ -706,7 +706,7 @@
"Dist::Zilla::Plugin::Git::Tag" : {
"branch" : "releases",
"signed" : 0,
"tag" : "0.001000",
"tag" : "0.001001",
"tag_format" : "%v",
"tag_message" : "v%v",
"time_zone" : "local"
Expand Down
8 changes: 4 additions & 4 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name: Benchmark-CSV
provides:
Benchmark::CSV:
file: lib/Benchmark/CSV.pm
version: '0.001000'
version: '0.001001'
requires:
Carp: '0'
IO::Handle: '0'
Expand All @@ -33,7 +33,7 @@ resources:
bugtracker: https://github.com/kentnl/Benchmark-CSV/issues
homepage: https://github.com/kentnl/Benchmark-CSV
repository: https://github.com/kentnl/Benchmark-CSV.git
version: '0.001000'
version: '0.001001'
x_BuiltWith:
modules:
CPAN::Meta: '2.142060'
Expand Down Expand Up @@ -441,7 +441,7 @@ x_Dist_Zilla:
Dist::Zilla::Plugin::Git::Tag:
branch: ~
signed: '0'
tag: 0.001000-source
tag: 0.001001-source
tag_format: '%v-source'
tag_message: v%v
time_zone: local
Expand Down Expand Up @@ -495,7 +495,7 @@ x_Dist_Zilla:
Dist::Zilla::Plugin::Git::Tag:
branch: releases
signed: '0'
tag: '0.001000'
tag: '0.001001'
tag_format: '%v'
tag_message: v%v
time_zone: local
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ my %WriteMakefileArgs = (
"File::Spec" => 0,
"Test::More" => "0.89"
},
"VERSION" => "0.001000",
"VERSION" => "0.001001",
"test" => {
"TESTS" => "t/*.t t/00-compile/*.t"
}
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NAME
advanced processing.

VERSION
version 0.001000
version 0.001001

SYNOPSIS
use Benchmark::CSV;
Expand Down
34 changes: 20 additions & 14 deletions lib/Benchmark/CSV.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ use utf8;

package Benchmark::CSV;

our $VERSION = '0.001000';
our $VERSION = '0.001001';

use Path::Tiny;
use Carp qw( croak carp );
use Time::HiRes qw( gettimeofday tv_interval clock_gettime );
use Time::HiRes qw( gettimeofday tv_interval );
use IO::Handle;
use List::Util qw( shuffle );

Expand Down Expand Up @@ -83,31 +83,34 @@ sub add_instance {
return;
}

my $timing_methods = {
# These are hard to use as a default due to linux things.
my $hires_gettime_methods = {
## no critic (ValuesAndExpressions::RequireInterpolationOfMetachars);
'hires_wall' => {
start => q[my $start = [ gettimeofday ]],
stop => q[my $stop = [ gettimeofday ]],
diff => q[tv_interval( $start, [ gettimeofday ])],
},

# This one is hard to use as a default due to linux things.
'hires_cputime_process' => {

# bits/time.h
# CLOCK_PROCESS_CPUTIME_ID = 2
start => q[my $start = clock_gettime(2)],
stop => q[my $stop = clock_gettime(2)],
start => q[my $start = Time::HiRes::clock_gettime(2)],
stop => q[my $stop = Time::HiRes::clock_gettime(2)],
diff => q[ ( $stop - $start )],
},
'hires_cputime_thread' => {

# bits/time.h
# CLOCK_THREAD_CPUTIME_ID = 3
start => q[my $start = clock_gettime(3)],
stop => q[my $stop = clock_gettime(3)],
start => q[my $start = Time::HiRes::clock_gettime(3)],
stop => q[my $stop = Time::HiRes::clock_gettime(3)],
diff => q[ ( $stop - $start )],
},
};
my $timing_methods = {
## no critic (ValuesAndExpressions::RequireInterpolationOfMetachars);
'hires_wall' => {
start => q[my $start = [ gettimeofday ]],
stop => q[my $stop = [ gettimeofday ]],
diff => q[tv_interval( $start, [ gettimeofday ])],
},

# These are all bad because they're very imprecise :(
'times' => {
Expand All @@ -126,6 +129,9 @@ my $timing_methods = {
diff => q[ ( $stop[1] - $start[1] ) ],
},
};
if ( Time::HiRes->can('clock_gettime') ) {
$timing_methods = { %{$timing_methods}, %{$hires_gettime_methods} };
}



Expand Down Expand Up @@ -231,7 +237,7 @@ Benchmark::CSV - Report raw timing results in CSV-style format for advanced proc
=head1 VERSION
version 0.001000
version 0.001001
=head1 SYNOPSIS
Expand Down
2 changes: 2 additions & 0 deletions misc/Changes.deps
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
This file contains changes in REQUIRED dependencies for standard CPAN phases (configure/build/runtime/test)

0.001001

2 changes: 2 additions & 0 deletions misc/Changes.deps.all
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
This file contains ALL changes in dependencies in both REQUIRED / OPTIONAL dependencies for all phases (configure/build/runtime/test/develop)

0.001001

2 changes: 2 additions & 0 deletions misc/Changes.deps.dev
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
This file contains changes to DEVELOPMENT dependencies only ( both REQUIRED and OPTIONAL )

0.001001

2 changes: 2 additions & 0 deletions misc/Changes.deps.opt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
This file contains changes in OPTIONAL dependencies for standard CPAN phases (configure/build/runtime/test)

0.001001

0 comments on commit 16afef1

Please sign in to comment.