Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for humanize (0.18 sec)

  1. cmd/object-api-datatypes.go

    	{"BETWEEN_1024B_AND_1_MB", humanize.KiByte, humanize.MiByte - 1},
    	{"BETWEEN_1_MB_AND_10_MB", humanize.MiByte, humanize.MiByte*10 - 1},
    	{"BETWEEN_10_MB_AND_64_MB", humanize.MiByte * 10, humanize.MiByte*64 - 1},
    	{"BETWEEN_64_MB_AND_128_MB", humanize.MiByte * 64, humanize.MiByte*128 - 1},
    	{"BETWEEN_128_MB_AND_512_MB", humanize.MiByte * 128, humanize.MiByte*512 - 1},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  2. cmd/object-api-putobject_test.go

    	benchmarkPutObject(b, "FS", 100*humanize.KiByte)
    }
    
    // BenchmarkPutObject100KbErasure - Benchmark Erasure.PutObject() for object size of 100KB.
    func BenchmarkPutObject100KbErasure(b *testing.B) {
    	benchmarkPutObject(b, "Erasure", 100*humanize.KiByte)
    }
    
    // BenchmarkPutObject1MbFS - Benchmark FS.PutObject() for object size of 1MB.
    func BenchmarkPutObject1MbFS(b *testing.B) {
    	benchmarkPutObject(b, "FS", 1*humanize.MiByte)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/filter_test.go

    			objSize: 101 * humanize.MiByte,
    			want:    false,
    		},
    		{
    			filter:  fiLt,
    			objSize: 99 * humanize.MiByte,
    			want:    true,
    		},
    		{
    			filter:  fiGt,
    			objSize: 1*humanize.MiByte - 1,
    			want:    false,
    		},
    		{
    			filter:  fiGt,
    			objSize: 1*humanize.MiByte + 1,
    			want:    true,
    		},
    		{
    			filter:  fiLtAndGt,
    			objSize: 1*humanize.MiByte - 1,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 27 00:01:20 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  4. cmd/erasure-metadata_test.go

    		fi.AddObjectPart(partNum, "etag."+partNumString, int64(partNum+humanize.MiByte), ActualSize, UTCNow(), nil, nil)
    	}
    
    	testCases := []struct {
    		offset         int64
    		expectedIndex  int
    		expectedOffset int64
    		expectedErr    error
    	}{
    		{0, 0, 0, nil},
    		{1 * humanize.MiByte, 0, 1 * humanize.MiByte, nil},
    		{1 + humanize.MiByte, 1, 0, nil},
    		{2 + humanize.MiByte, 1, 1, nil},
    		// Its valid for zero sized object.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  5. internal/s3select/select_benchmark_test.go

    	benchmarkSelectAll(b, 100*humanize.KiByte)
    }
    
    // BenchmarkSelectAll_1M - benchmark * function with 1m records.
    func BenchmarkSelectAll_1M(b *testing.B) {
    	benchmarkSelectAll(b, 1*humanize.MiByte)
    }
    
    // BenchmarkSelectAll_2M - benchmark * function with 2m records.
    func BenchmarkSelectAll_2M(b *testing.B) {
    	benchmarkSelectAll(b, 2*humanize.MiByte)
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 14 13:54:47 GMT 2022
    - 5K bytes
    - Viewed (0)
  6. cmd/bucket-versioning-handler.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"encoding/base64"
    	"encoding/xml"
    	"io"
    	"net/http"
    
    	humanize "github.com/dustin/go-humanize"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/bucket/versioning"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/mux"
    	"github.com/minio/pkg/v2/policy"
    )
    
    const (
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. cmd/xl-storage-format_test.go

    		// part size 2MiB, total size 4MiB
    		{4 * humanize.MiByte, 2 * humanize.MiByte, 1, 2 * humanize.MiByte},
    		{4 * humanize.MiByte, 2 * humanize.MiByte, 2, 2 * humanize.MiByte},
    		{4 * humanize.MiByte, 2 * humanize.MiByte, 3, 0},
    		// part size 2MiB, total size 5MiB
    		{5 * humanize.MiByte, 2 * humanize.MiByte, 1, 2 * humanize.MiByte},
    		{5 * humanize.MiByte, 2 * humanize.MiByte, 2, 2 * humanize.MiByte},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  8. cmd/encryption-v1_test.go

    	}
    	if partStart != 1 {
    		t.Fatalf("Test: expected %d, got %d", 1, partStart)
    	}
    }
    
    func TestGetDecryptedRange(t *testing.T) {
    	var (
    		pkgSz     = int64(64) * humanize.KiByte
    		minPartSz = int64(5) * humanize.MiByte
    		maxPartSz = int64(5) * humanize.GiByte
    
    		getEncSize = func(s int64) int64 {
    			v, _ := sio.EncryptedSize(uint64(s))
    			return int64(v)
    		}
    		udMap = func(isMulti bool) map[string]string {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
  9. cmd/perf-tests.go

    package cmd
    
    import (
    	"context"
    	"encoding/gob"
    	"errors"
    	"fmt"
    	"io"
    	"math/rand"
    	"net/http"
    	"net/url"
    	"sync"
    	"sync/atomic"
    	"time"
    
    	"github.com/dustin/go-humanize"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio-go/v7"
    	xhttp "github.com/minio/minio/internal/http"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/pkg/v2/randreader"
    )
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  10. cmd/object-api-common.go

    import (
    	"sync"
    
    	"github.com/dustin/go-humanize"
    )
    
    const (
    	// Block size used for all internal operations version 1.
    
    	// TLDR..
    	// Not used anymore xl.meta captures the right blockSize
    	// so blockSizeV2 should be used for all future purposes.
    	// this value is kept here to calculate the max API
    	// requests based on RAM size for existing content.
    	blockSizeV1 = 10 * humanize.MiByte
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 2.1K bytes
    - Viewed (0)
Back to top