Skip to content

Overhead of dynamic_cast #8003

@masaori335

Description

@masaori335

Here are some numbers from the measurement of the overhead of dynamic_cast on the inbound side of HTTP/1.1 on TCP.

Profile on Instruments

Instuments says 0.7% on __dynamic_cast and it's the second heaviest call of Htt1ClientSession::new_transaction() ( on the master branch (c6d3f6f) )
Screen Shot 2021-06-28 at 9 52 58

rec/sec

items master PoC diff
avg 41379.7169 42578.5729 1.029
90%tile 44459.874 45816.123 1.031
min 34569.55 35596.56 1.030
max 46382.62 47461.07 1.023
for x in {1..100}; do h2load --h1 -n 100000 -m 1 -c 10 http://127.0.0.1:8080/static/1kb >> master.log; done

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions