d1c53afd1bf7d5989684e585c324160bd80bbd39,perfkitbenchmarker/scripts/object_storage_api_test_scripts/s3.py,S3Service,WriteObjectFromBuffer,#S3Service#Any#Any#Any#Any#,35

Before Change


    // We need to access the raw key object so we can set its storage
    // class
    key = object_uri.new_key()
    if FLAGS.object_storage_class is not None:
      key._set_storage_class(FLAGS.object_storage_class)  // pylint:disable=protected-access
    key.set_contents_from_file(stream, size=size)
    latency = time.time() - start_time
    return start_time, latency

After Change


  def WriteObjectFromBuffer(self, bucket, object_name, stream, size):
    start_time = time.time()
    stream.seek(0)
    obj = six.BytesIO(stream.read(size))
    self.client.put_object(Body=obj, Bucket=bucket, Key=object_name)
    latency = time.time() - start_time
    return start_time, latency
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: d1c53afd1bf7d5989684e585c324160bd80bbd39
Time: 2020-05-08
Author: jerlawson@google.com
File Name: perfkitbenchmarker/scripts/object_storage_api_test_scripts/s3.py
Class Name: S3Service
Method Name: WriteObjectFromBuffer


Project Name: autorope/donkeycar
Commit Name: 558cf909ff79341e699cf872082231f83f4cdc50
Time: 2017-02-08
Author: wroscoe@gmail.com
File Name: donkey/remotes.py
Class Name: CameraMJPEGHandler
Method Name: get


Project Name: autorope/donkeycar
Commit Name: c2758420ba074a7e3b3ee49fa291099ad9996001
Time: 2016-12-10
Author: wroscoe@gmail.com
File Name: pi.py
Class Name:
Method Name: