← Index
NYTProf Performance Profile   « line view »
For /home/ss5/perl5/perlbrew/perls/perl-5.22.0/bin/benchmarkanything-storage
  Run on Mon Jan 29 16:55:34 2018
Reported on Mon Jan 29 16:57:07 2018

Filename/home/ss5/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/BenchmarkAnything/Storage/Search/Elasticsearch/Serializer/JSON/DontTouchMyUTF8.pm
StatementsExecuted 1012 statements in 13.8ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1000118.44ms34.7msBenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::::__ANON__[:13]BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::__ANON__[:13]
11111µs548µsBenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::::BEGIN@10BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::BEGIN@10
1119µs15µsBenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::::BEGIN@11BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::BEGIN@11
1115µs99µsBenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::::BEGIN@16BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::BEGIN@16
2212µs2µsBenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::::JSONBenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::JSON (xsub)
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8;
21300nsour $AUTHORITY = 'cpan:SCHWIGON';
3# ABSTRACT: Pass through known-utf8 data untouched to Elasticsearch.
41100ns$BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::VERSION = '0.003';
5# As seen in
6# https://github.com/elastic/elasticsearch-perl/issues/57
7# (Kudos to Celogeek - you are not alone!)
8
9
10224µs21.08ms
# spent 548µs (11+537) within BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::BEGIN@10 which was called: # once (11µs+537µs) by Module::Runtime::require_module at line 10
use Moo;
11349µs220µs
# spent 15µs (9+6) within BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::BEGIN@11 which was called: # once (9µs+6µs) by Module::Runtime::require_module at line 11
use JSON::MaybeXS 1.002002 ();
12
13100113.7ms100126.6ms
# spent 34.7ms (8.44+26.3) within BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::__ANON__[/home/ss5/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/BenchmarkAnything/Storage/Search/Elasticsearch/Serializer/JSON/DontTouchMyUTF8.pm:13] which was called 1000 times, avg 35µs/call: # 1000 times (8.44ms+26.3ms) by BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::new at line 52 of (eval 237)[Sub/Quote.pm:3], avg 35µs/call
has 'JSON' => ( is => 'ro', default => sub { JSON::MaybeXS->new } );
# spent 26.3ms making 1000 calls to JSON::MaybeXS::new, avg 26µs/call # spent 266µs making 1 call to Moo::has
14
151700ns12.97mswith 'Search::Elasticsearch::Role::Serializer::JSON';
# spent 2.97ms making 1 call to Moo::with
16214µs2194µs
# spent 99µs (5+94) within BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::BEGIN@16 which was called: # once (5µs+94µs) by Module::Runtime::require_module at line 16
use namespace::clean;
17
1815µs1;
19
2016µs1119µs__END__
 
# spent 2µs within BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::JSON which was called 2 times, avg 950ns/call: # once (1µs+0s) by Search::Elasticsearch::Role::Serializer::JSON::try {...} at line 81 of Search/Elasticsearch/Role/Serializer/JSON.pm # once (800ns+0s) by Search::Elasticsearch::Role::Serializer::JSON::try {...} at line 24 of Search/Elasticsearch/Role/Serializer/JSON.pm
sub BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::JSON; # xsub