Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for bandwidth (0.13 sec)

  1. internal/bucket/bandwidth/monitor.go

    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package bandwidth
    
    //go:generate msgp -file=$GOFILE -unexported
    
    import (
    	"context"
    	"sync"
    	"time"
    
    	"golang.org/x/time/rate"
    )
    
    //msgp:ignore bucketThrottle Monitor
    
    type bucketThrottle struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. internal/bucket/bandwidth/reader.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package bandwidth
    
    import (
    	"context"
    	"io"
    	"math"
    )
    
    // MonitoredReader represents a throttled reader subject to bandwidth monitoring
    type MonitoredReader struct {
    	r        io.Reader
    	throttle *bucketThrottle
    	ctx      context.Context // request context
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 06 03:21:59 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. internal/bucket/bandwidth/monitor_test.go

    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package bandwidth
    
    import (
    	"reflect"
    	"testing"
    	"time"
    )
    
    const (
    	oneMiB uint64 = 1024 * 1024
    )
    
    func TestMonitor_GetReport(t *testing.T) {
    	type fields struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 06 03:21:59 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. internal/bucket/bandwidth/monitor_gen_test.go

    package bandwidth
    
    // Code generated by github.com/tinylib/msgp DO NOT EDIT.
    
    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalBucketBandwidthReport(t *testing.T) {
    	v := BucketBandwidthReport{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. internal/bucket/bandwidth/monitor_gen.go

    package bandwidth
    
    // Code generated by github.com/tinylib/msgp DO NOT EDIT.
    
    import (
    	"github.com/tinylib/msgp/msgp"
    )
    
    // DecodeMsg implements msgp.Decodable
    func (z *BucketBandwidthReport) DecodeMsg(dc *msgp.Reader) (err error) {
    	var field []byte
    	_ = field
    	var zb0001 uint32
    	zb0001, err = dc.ReadMapHeader()
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0001 > 0 {
    		zb0001--
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. README.md

    OkHttp
    ======
    
    See the [project website][okhttp] for documentation and APIs.
    
    HTTP is the way modern applications network. It’s how we exchange data & media. Doing HTTP
    efficiently makes your stuff load faster and saves bandwidth.
    
    OkHttp is an HTTP client that’s efficient by default:
    
     * HTTP/2 support allows all requests to the same host to share a socket.
     * Connection pooling reduces request latency (if HTTP/2 isn’t available).
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. internal/grid/README.md

    Do *not* use the MinIO Grid for:
    
    * Large payloads.
    
    Only a single connection is ever made between two servers.
    Likely this means that this connection will not be able to saturate network bandwidth.
    Therefore, using this for large payloads will likely be slower than using a separate connection,
    and other connections will be blocked while the large payload is being sent.
    
    ## Handlers & Routes
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters_test.cc

                                          const float max_value,
                                          const float bin_width) {
      const float lower_bound = CalculateLowerBound(min_value, bin_width);
      return std::ceil((max_value - lower_bound) / bin_width);
    }
    
    TEST(CalibrationParametersTest, CalculateBinWidthSmallerThanOne) {
      float bin_width = CalculateBinWidth(/*min_value=*/0.0, /*max_value=*/25.0,
                                          /*num_bins=*/256);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 05 09:09:34 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters.h

    // `N * bin_width`.
    inline float CalculateLowerBound(const float min_value, const float bin_width) {
      return std::floor(min_value / bin_width) * bin_width;
    }
    
    // Calculates the bin index of the current value.
    inline int32_t CalculateBinIndex(const float value, const float lower_bound,
                                     const float bin_width) {
      return std::floor((value - lower_bound) / bin_width);
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics.proto

      message HistogramStatistics {
        // width of bin
        float bin_width = 1;
    
        // lower_bound is the first bin's min value.
        // lower_bound and bin_width can be used to restore the histogram.
        float lower_bound = 2;
    
        // hist_freq[i] saves frequency of range [bins[i], bins[i + 1]).
        // bins[i]     = lower_bound + bin_width * i
        // bins[i + 1] = lower_bound + bin_width * (i + 1)
        repeated float hist_freq = 3;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 16 04:33:52 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top