Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

benchmarking read and write performance #10

Open
scottyhq opened this issue May 5, 2021 · 1 comment
Open

benchmarking read and write performance #10

scottyhq opened this issue May 5, 2021 · 1 comment

Comments

@scottyhq
Copy link
Member

scottyhq commented May 5, 2021

@rmg55 put together a nice notebook here looking at s3 versus http access: https://github.com/rmg55/CloudDAAC_Binders , would be great to include more benchmarking information and suggestion in this repository

also wanted to link over to pangeo-data/pangeo-integration-tests#1

@vincentsarago
Copy link

@scottyhq I haven't run your notebook but couple weeks ago we had a discussion about the difference between s3/https URL in the cogeotiff slack. We found out that using S3 url was saving one request (GetFileSize)

$ tilebench profile s3://rio-tiler-dev/data/eu_webAligned_256pxWEBP.tif --tile 5-10-9| jq                                  
{
  "LIST": {
    "count": 0
  },
  "HEAD": {
    "count": 0
  },
  "GET": {
    "count": 2,
    "bytes": 32768,
    "ranges": [
      "0-16383",
      "229376-245759"
    ]
  },
  "Timing": 0.4968528747558594
}
$ tilebench profile https://rio-tiler-dev.s3.amazonaws.com/data/eu_webAligned_256pxWEBP.tif --tile 5-10-9 | jq             
{
  "LIST": {
    "count": 0
  },
  "HEAD": {
    "count": 1
  },
  "GET": {
    "count": 2,
    "bytes": 32768,
    "ranges": [
      "0-16383",
      "229376-245759"
    ]
  },
  "Timing": 0.4858889579772949
}

ahhhhh, so GetFileSize is used on http sources, if you use s3 GDAL get the filesize from the response of the first GET request

ref: https://cogeotiff.slack.com/archives/C01DE57GLHE/p1613141057016300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants