github.com/whiteCcinn/protobuf-go@v1.0.9/internal/benchmarks/download_benchdata.bash (about)

     1  #!/bin/bash
     2  # Copyright 2019 The Go Authors. All rights reserved.
     3  # Use of this source code is governed by a BSD-style
     4  # license that can be found in the LICENSE file.
     5  
     6  cd "$(git rev-parse --show-toplevel)"
     7  mkdir -p .cache/benchdata
     8  cd .cache/benchdata
     9  
    10  # Download small benchmark datasets.
    11  PROTOBUF_VERSION=v3.11.4
    12  curl -s -O https://raw.githubusercontent.com/protocolbuffers/protobuf/$PROTOBUF_VERSION/benchmarks/datasets/google_message1/proto2/dataset.google_message1_proto2.pb
    13  curl -s -O https://raw.githubusercontent.com/protocolbuffers/protobuf/$PROTOBUF_VERSION/benchmarks/datasets/google_message1/proto3/dataset.google_message1_proto3.pb
    14  curl -s -O https://raw.githubusercontent.com/protocolbuffers/protobuf/$PROTOBUF_VERSION/benchmarks/datasets/google_message2/dataset.google_message2.pb
    15  
    16  # Download large benchmark datasets.
    17  curl -s https://storage.googleapis.com/protobuf_opensource_benchmark_data/datasets.tar.gz | tar zx