Filename | /home/ss5/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/BenchmarkAnything/Storage/Search/Elasticsearch/Serializer/JSON/DontTouchMyUTF8.pm |
Statements | Executed 1012 statements in 13.8ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1000 | 1 | 1 | 8.44ms | 34.7ms | __ANON__[:13] | BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::
1 | 1 | 1 | 11µs | 548µs | BEGIN@10 | BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::
1 | 1 | 1 | 9µs | 15µs | BEGIN@11 | BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::
1 | 1 | 1 | 5µs | 99µs | BEGIN@16 | BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::
2 | 2 | 1 | 2µs | 2µs | JSON (xsub) | BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8; | ||||
2 | 1 | 300ns | our $AUTHORITY = 'cpan:SCHWIGON'; | ||
3 | # ABSTRACT: Pass through known-utf8 data untouched to Elasticsearch. | ||||
4 | 1 | 100ns | $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 | |||||
10 | 2 | 24µs | 2 | 1.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 # spent 548µs making 1 call to BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::BEGIN@10
# spent 537µs making 1 call to Moo::import |
11 | 3 | 49µs | 2 | 20µ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 # spent 15µs making 1 call to BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::BEGIN@11
# spent 6µs making 1 call to UNIVERSAL::VERSION |
12 | |||||
13 | 1001 | 13.7ms | 1001 | 26.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 # spent 26.3ms making 1000 calls to JSON::MaybeXS::new, avg 26µs/call
# spent 266µs making 1 call to Moo::has |
14 | |||||
15 | 1 | 700ns | 1 | 2.97ms | with 'Search::Elasticsearch::Role::Serializer::JSON'; # spent 2.97ms making 1 call to Moo::with |
16 | 2 | 14µs | 2 | 194µ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 # spent 99µs making 1 call to BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::BEGIN@16
# spent 94µs making 1 call to namespace::clean::import |
17 | |||||
18 | 1 | 5µs | 1; | ||
19 | |||||
20 | 1 | 6µs | 1 | 119µs | __END__ # spent 119µs making 1 call to B::Hooks::EndOfScope::XS::__ANON__[B/Hooks/EndOfScope/XS.pm:17] |
# 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 |