Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
zistvan-public
Caribou KVS with Privacy Perturbations
Commits
c0397a5c
Commit
c0397a5c
authored
Jun 30, 2020
by
Claudiu Mihali
Browse files
Compiled throughput benchmark
parent
aaddc8e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
sw/multes_client_library_priv/internal/protocols.go
View file @
c0397a5c
...
...
@@ -2,7 +2,6 @@ package internal
import
(
"bufio"
"fmt"
"io"
)
...
...
@@ -123,7 +122,7 @@ type ValueResHandler struct {
}
// var errs = 0
var
responseNo
=
0
//
var responseNo = 0
func
(
ValueResHandler
)
handleResponse
(
o
*
Operation
,
rd
*
bufio
.
Reader
)
error
{
...
...
@@ -191,8 +190,8 @@ func (ValueResHandler) handleResponse(o *Operation, rd *bufio.Reader) error {
o
.
Result
=
rpl
responseNo
++
fmt
.
Printf
(
"%d "
,
responseNo
)
//
responseNo++
//
fmt.Printf("%d ", responseNo)
// } else if o.OpCode == OpGetCond {
// plb := make([]byte, 4)
...
...
sw/multes_client_library_priv/parquet/ParquetProcessor.go
View file @
c0397a5c
...
...
@@ -334,10 +334,10 @@ func (processor *Processor) GetPerturbedRows(key []byte, columnPermutation []int
processor
.
valueNoOffsets
[
disabledColumnsIndices
[
i
]]
=
0
}
fmt
.
Printf
(
"Column permutation: %v
\n
"
,
columnPermutation
)
fmt
.
Printf
(
"Column chunks values no: %v
\n
"
,
processor
.
columnChunksValuesNo
)
fmt
.
Printf
(
"valueNoOffsets: %v
\n
"
,
processor
.
valueNoOffsets
)
fmt
.
Printf
(
"getCondNo = %d; getNo = %d
\n\n
"
,
getCondNo
,
getNo
)
//
fmt.Printf("Column permutation: %v\n", columnPermutation)
//
fmt.Printf("Column chunks values no: %v\n", processor.columnChunksValuesNo)
//
fmt.Printf("valueNoOffsets: %v\n", processor.valueNoOffsets)
//
fmt.Printf("getCondNo = %d; getNo = %d\n\n", getCondNo, getNo)
pages
,
err
:=
processor
.
Client
.
GetBulkN
(
keys
,
getCondNo
,
getNo
,
n
)
//pages, err := processor.Client.GetBulk(keys, getCondNo, getNo)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment