Searched refs:encodedSize (Results 1 – 3 of 3) sorted by relevance
/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/ |
D | ParseRawPrimitivesBenchmark.cs | 72 for (int encodedSize = 1; encodedSize <= 10; encodedSize++) in GlobalSetup() 74 …] buffer = CreateBufferWithRandomVarints(random, BytesToParse / encodedSize, encodedSize, paddingV… in GlobalSetup() 75 varintInputBuffers.Add(encodedSize, buffer); in GlobalSetup() 83 foreach (var encodedSize in StringEncodedSizes) in GlobalSetup() 85 …byte[] buffer = CreateBufferWithStrings(BytesToParse / encodedSize, encodedSize, encodedSize < 10 … in GlobalSetup() 86 stringInputBuffers.Add(encodedSize, buffer); in GlobalSetup() 90 foreach (var encodedSize in StringSegmentedEncodedSizes) in GlobalSetup() 92 …byte[] buffer = CreateBufferWithStrings(BytesToParse / encodedSize, encodedSize, encodedSize < 10 … in GlobalSetup() 93 …stringInputBuffersSegmented.Add(encodedSize, ReadOnlySequenceFactory.CreateWithContent(buffer, seg… in GlobalSetup() 110 public int ParseRawVarint32_CodedInputStream(int encodedSize) in ParseRawVarint32_CodedInputStream() argument [all …]
|
D | WriteRawPrimitivesBenchmark.cs | 81 for (int encodedSize = 1; encodedSize <= 10; encodedSize++) in GlobalSetup() 83 if (encodedSize <= 5) in GlobalSetup() 85 …varint32Values.Add(encodedSize, CreateRandomVarints32(random, BytesToWrite / encodedSize, encodedS… in GlobalSetup() 87 …varint64Values.Add(encodedSize, CreateRandomVarints64(random, BytesToWrite / encodedSize, encodedS… in GlobalSetup() 96 foreach(var encodedSize in StringEncodedSizes) in GlobalSetup() 98 … stringValues.Add(encodedSize, CreateStrings(BytesToWrite / encodedSize, encodedSize)); in GlobalSetup() 99 … byteStringValues.Add(encodedSize, CreateByteStrings(BytesToWrite / encodedSize, encodedSize)); in GlobalSetup() 103 foreach(var encodedSize in NonAsciiStringEncodedSizes) in GlobalSetup() 105 …nonAsciiStringValues.Add(encodedSize, CreateNonAsciiStrings(BytesToWrite / encodedSize, encodedSiz… in GlobalSetup() 122 public void WriteRawVarint32_CodedOutputStream(int encodedSize) in WriteRawVarint32_CodedOutputStream() argument [all …]
|
/third_party/node/benchmark/buffers/ |
D | buffer-base64-decode.js | 12 const encodedSize = s.length * 3 / 4; 16 const b = Buffer.allocUnsafe(encodedSize); 17 b.write(s, 0, encodedSize, 'base64');
|