question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Random _transferSize values

See original GitHub issue

I have a demo site running HTTP\2.0 here and its just downloads 50 Javascript objects of all the same size.

When I open chrome manually and grab the HAR I always will get a _transferSize of 20250 for every one

When I use the chrome-har-capturer

var chc = require('chrome-har-capturer');
var c = chc.load(['https://http2optimization.com/W_2_2_a/']);
c.on('end', function (har) {
   console.log ( har );
});

Not only do I get _transferSize of 20027 but sometimes I will get random lower values ranging from 0 - 20000 for like 1 or 2 of the 50 files

I also notice the files that get a random less _transferSize will have way quicker timing values as well

Also: I am running chrome headless with the --incognito flag as well so there is no way it should be caching any of it neither

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
cyrus-andcommented, Apr 6, 2017
1reaction
benschwarzcommented, Apr 6, 2017

Additional (maybe) interest:

  • Version 0.8.1 reported
basename    httpVersion  headersSize  bodySize  _transferSize  contentSize
----------  -----------  -----------  --------  -------------  -----------
W_2_2_a     h2           -1           -1        0              195
object1.js  h2           -1           -1        150696         166666
object2.js  h2           -1           -1        166855         166666
object3.js  h2           -1           -1        166855         166666
  • Version 0.7.0 reported:
basename    httpVersion  headersSize  bodySize  _transferSize  contentSize
----------  -----------  -----------  --------  -------------  -----------
W_2_2_a     h2           336          -336      0              195
object1.js  h2           372          150324    150696         166666
object2.js  h2           372          166483    166855         166666
object3.js  h2           372          166483    166855         166666

Saving the har from Chrome devtools, loading and running the object through the test script observed:

basename    httpVersion  headersSize  bodySize  _transferSize  contentSize
----------  -----------  -----------  --------  -------------  -----------
W_2_2_a     unknown      -1           -1        341            195
object1.js  unknown      -1           -1        167080         166666
object2.js  unknown      -1           -1        167080         166666
object3.js  unknown      -1           -1        167080         166666
Read more comments on GitHub >

github_iconTop Results From Across the Web

PerformanceResourceTiming.transferSize - Web APIs | MDN
The transferSize property can have the following values: A number representing the size (in octets) of the fetched resource. The size includes ...
Read more >
Why do PerformanceResourceTiming interface values differ ...
I've written a script that runs on a domain and fetches images from various other domains (3rd party resources). I'm trying to use...
Read more >
Performance metrics for storage host connections on an XIV
Read Transfer Size (KiB/op): The average number of KiB that are transferred per read ... This value includes both sequential and random read...
Read more >
Transfer size much bigger than Network Transferred ... - GitHub
The Remove Unused CSS issue is not reported for this resource when the site is running on a web server so I don't...
Read more >
How to Measure Disk Performance Easily [Step-By-Step Guide]
So, the transfer size value is usually a multiple of 4 KB. ... Surely, the disk speed test in sequential & random mode...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found