Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-chunker
Commits
52ca04ea
Unverified
Commit
52ca04ea
authored
Oct 05, 2019
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pool usage in benchmark
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protocol.ai
>
parent
cd783450
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
splitting_test.go
splitting_test.go
+2
-0
No files found.
splitting_test.go
View file @
52ca04ea
...
...
@@ -7,6 +7,7 @@ import (
u
"github.com/ipfs/go-ipfs-util"
util
"github.com/ipfs/go-ipfs-util"
pool
"github.com/libp2p/go-buffer-pool"
)
func
randBuf
(
t
*
testing
.
T
,
size
int
)
[]
byte
{
...
...
@@ -142,6 +143,7 @@ func BenchmarkDefault(b *testing.B) {
b
.
Fatal
(
err
)
}
res
=
res
+
uint64
(
len
(
chunk
))
pool
.
Put
(
chunk
)
}
}
Res
=
Res
+
res
...
...
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