Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkMarshalBytes (0.26 sec)

  1. src/encoding/json/bench_test.go

    				b.Fatalf("Marshal error: %v", err)
    			}
    			if _, err := Marshal(dummy); err == nil {
    				b.Fatal("Marshal error: got nil, want non-nil")
    			}
    		}
    	}
    }
    
    func BenchmarkMarshalBytes(b *testing.B) {
    	b.ReportAllocs()
    	// 32 fits within encodeState.scratch.
    	b.Run("32", benchMarshalBytes(32))
    	// 256 doesn't fit in encodeState.scratch, but is small enough to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:00:17 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top