Skip to content

Commit

Permalink
chore: relocate tm2/std.MemFile in gnovm/std (#2910)
Browse files Browse the repository at this point in the history
This PR removes "gno.land" from all `tm2/.../*.go` files.

---------

Signed-off-by: moul <[email protected]>
  • Loading branch information
moul authored Oct 25, 2024
1 parent 0b2c67e commit 603f6d3
Show file tree
Hide file tree
Showing 36 changed files with 254 additions and 7,365 deletions.
51 changes: 26 additions & 25 deletions gno.land/pkg/gnoclient/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/gnolang/gno/gno.land/pkg/gnoland/ugnot"
"github.com/gnolang/gno/gno.land/pkg/sdk/vm"
"github.com/gnolang/gno/gnovm"
abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types"
ctypes "github.com/gnolang/gno/tm2/pkg/bft/rpc/core/types"
"github.com/gnolang/gno/tm2/pkg/bft/types"
Expand All @@ -17,7 +18,7 @@ import (
"github.com/gnolang/gno/tm2/pkg/std"
)

var testGasFee = ugnot.ValueString(10000)
var testGasFee = ugnot.ValueString(10_000)

func TestRender(t *testing.T) {
t.Parallel()
Expand Down Expand Up @@ -652,8 +653,8 @@ func main() {

msg := vm.MsgRun{
Caller: caller.GetAddress(),
Package: &std.MemPackage{
Files: []*std.MemFile{
Package: &gnovm.MemPackage{
Files: []*gnovm.MemFile{
{
Name: "main.gno",
Body: fileBody,
Expand Down Expand Up @@ -729,8 +730,8 @@ func main() {

msg1 := vm.MsgRun{
Caller: caller.GetAddress(),
Package: &std.MemPackage{
Files: []*std.MemFile{
Package: &gnovm.MemPackage{
Files: []*gnovm.MemFile{
{
Name: "main1.gno",
Body: fileBody,
Expand All @@ -742,8 +743,8 @@ func main() {

msg2 := vm.MsgRun{
Caller: caller.GetAddress(),
Package: &std.MemPackage{
Files: []*std.MemFile{
Package: &gnovm.MemPackage{
Files: []*gnovm.MemFile{
{
Name: "main2.gno",
Body: fileBody,
Expand Down Expand Up @@ -794,10 +795,10 @@ func TestRunErrors(t *testing.T) {
msgs: []vm.MsgRun{
{
Caller: mockAddress,
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "",
Path: "",
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "file1.gno",
Body: "",
Expand Down Expand Up @@ -841,10 +842,10 @@ func TestRunErrors(t *testing.T) {
msgs: []vm.MsgRun{
{
Caller: mockAddress,
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "",
Path: "",
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "file1.gno",
Body: "",
Expand Down Expand Up @@ -872,10 +873,10 @@ func TestRunErrors(t *testing.T) {
msgs: []vm.MsgRun{
{
Caller: mockAddress,
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "",
Path: "",
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "file1.gno",
Body: "",
Expand Down Expand Up @@ -903,10 +904,10 @@ func TestRunErrors(t *testing.T) {
msgs: []vm.MsgRun{
{
Caller: mockAddress,
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "",
Path: "",
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "file1.gno",
Body: "",
Expand Down Expand Up @@ -943,7 +944,7 @@ func TestRunErrors(t *testing.T) {
msgs: []vm.MsgRun{
{
Caller: mockAddress,
Package: &std.MemPackage{Name: "", Path: " "},
Package: &gnovm.MemPackage{Name: "", Path: " "},
Send: nil,
},
},
Expand Down Expand Up @@ -993,10 +994,10 @@ func TestAddPackageErrors(t *testing.T) {
msgs: []vm.MsgAddPackage{
{
Creator: mockAddress,
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "",
Path: "",
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "file1.gno",
Body: "",
Expand Down Expand Up @@ -1040,10 +1041,10 @@ func TestAddPackageErrors(t *testing.T) {
msgs: []vm.MsgAddPackage{
{
Creator: mockAddress,
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "",
Path: "",
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "file1.gno",
Body: "",
Expand Down Expand Up @@ -1071,10 +1072,10 @@ func TestAddPackageErrors(t *testing.T) {
msgs: []vm.MsgAddPackage{
{
Creator: mockAddress,
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "",
Path: "",
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "file1.gno",
Body: "",
Expand Down Expand Up @@ -1102,10 +1103,10 @@ func TestAddPackageErrors(t *testing.T) {
msgs: []vm.MsgAddPackage{
{
Creator: mockAddress,
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "",
Path: "",
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "file1.gno",
Body: "",
Expand Down Expand Up @@ -1142,7 +1143,7 @@ func TestAddPackageErrors(t *testing.T) {
msgs: []vm.MsgAddPackage{
{
Creator: mockAddress,
Package: &std.MemPackage{Name: "", Path: ""},
Package: &gnovm.MemPackage{Name: "", Path: ""},
Deposit: nil,
},
},
Expand Down
30 changes: 15 additions & 15 deletions gno.land/pkg/gnoclient/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import (

"github.com/gnolang/gno/gnovm/pkg/gnolang"

"github.com/gnolang/gno/tm2/pkg/sdk/bank"
"github.com/gnolang/gno/tm2/pkg/std"

"github.com/gnolang/gno/gno.land/pkg/gnoland/ugnot"
"github.com/gnolang/gno/gno.land/pkg/integration"
"github.com/gnolang/gno/gno.land/pkg/sdk/vm"
"github.com/gnolang/gno/gnovm"
"github.com/gnolang/gno/gnovm/pkg/gnoenv"
rpcclient "github.com/gnolang/gno/tm2/pkg/bft/rpc/client"
"github.com/gnolang/gno/tm2/pkg/crypto"
"github.com/gnolang/gno/tm2/pkg/crypto/keys"
"github.com/gnolang/gno/tm2/pkg/log"
"github.com/gnolang/gno/tm2/pkg/sdk/bank"
"github.com/gnolang/gno/tm2/pkg/std"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -316,9 +316,9 @@ func main() {
// Make Msg configs
msg := vm.MsgRun{
Caller: caller.GetAddress(),
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "main",
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "main.gno",
Body: fileBody,
Expand Down Expand Up @@ -393,9 +393,9 @@ func main() {
// Make Msg configs
msg1 := vm.MsgRun{
Caller: caller.GetAddress(),
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "main",
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "main.gno",
Body: fileBody1,
Expand All @@ -406,9 +406,9 @@ func main() {
}
msg2 := vm.MsgRun{
Caller: caller.GetAddress(),
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "main",
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "main.gno",
Body: fileBody2,
Expand Down Expand Up @@ -474,10 +474,10 @@ func Echo(str string) string {
// Make Msg config
msg := vm.MsgAddPackage{
Creator: caller.GetAddress(),
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "echo",
Path: deploymentPath,
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: fileName,
Body: body,
Expand Down Expand Up @@ -564,10 +564,10 @@ func Hello(str string) string {

msg1 := vm.MsgAddPackage{
Creator: caller.GetAddress(),
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "echo",
Path: deploymentPath1,
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "echo.gno",
Body: body1,
Expand All @@ -579,10 +579,10 @@ func Hello(str string) string {

msg2 := vm.MsgAddPackage{
Creator: caller.GetAddress(),
Package: &std.MemPackage{
Package: &gnovm.MemPackage{
Name: "hello",
Path: deploymentPath2,
Files: []*std.MemFile{
Files: []*gnovm.MemFile{
{
Name: "gno.mod",
Body: "module gno.land/p/demo/integration/test/hello",
Expand Down
13 changes: 7 additions & 6 deletions gno.land/pkg/gnoland/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (
"time"

"github.com/gnolang/gno/gno.land/pkg/sdk/vm"
gnostd "github.com/gnolang/gno/gnovm/stdlibs/std"
"github.com/gnolang/gno/gnovm"
gnostdlibs "github.com/gnolang/gno/gnovm/stdlibs/std"
"github.com/gnolang/gno/tm2/pkg/amino"
abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types"
bft "github.com/gnolang/gno/tm2/pkg/bft/types"
Expand Down Expand Up @@ -53,7 +54,7 @@ func TestNewAppWithOptions(t *testing.T) {
},
Txs: []std.Tx{
{
Msgs: []std.Msg{vm.NewMsgAddPackage(addr, "gno.land/r/demo", []*std.MemFile{
Msgs: []std.Msg{vm.NewMsgAddPackage(addr, "gno.land/r/demo", []*gnovm.MemFile{
{
Name: "demo.gno",
Body: "package demo; func Hello() string { return `hello`; }",
Expand Down Expand Up @@ -308,7 +309,7 @@ func TestEndBlocker(t *testing.T) {
c := newCollector[validatorUpdate](mockEventSwitch, noFilter)

// Fire a GnoVM event
mockEventSwitch.FireEvent(gnostd.GnoEvent{})
mockEventSwitch.FireEvent(gnostdlibs.GnoEvent{})

// Create the EndBlocker
eb := EndBlocker(c, mockVMKeeper, &mockEndBlockerApp{})
Expand Down Expand Up @@ -351,7 +352,7 @@ func TestEndBlocker(t *testing.T) {
c := newCollector[validatorUpdate](mockEventSwitch, noFilter)

// Fire a GnoVM event
mockEventSwitch.FireEvent(gnostd.GnoEvent{})
mockEventSwitch.FireEvent(gnostdlibs.GnoEvent{})

// Create the EndBlocker
eb := EndBlocker(c, mockVMKeeper, &mockEndBlockerApp{})
Expand Down Expand Up @@ -390,7 +391,7 @@ func TestEndBlocker(t *testing.T) {
// Construct the GnoVM events
vmEvents := make([]abci.Event, 0, len(changes))
for index := range changes {
event := gnostd.GnoEvent{
event := gnostdlibs.GnoEvent{
Type: validatorAddedEvent,
PkgPath: valRealm,
}
Expand All @@ -399,7 +400,7 @@ func TestEndBlocker(t *testing.T) {
if index%2 == 0 {
changes[index].Power = 0

event = gnostd.GnoEvent{
event = gnostdlibs.GnoEvent{
Type: validatorRemovedEvent,
PkgPath: valRealm,
}
Expand Down
4 changes: 2 additions & 2 deletions gno.land/pkg/gnoweb/gnoweb.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
"strings"
"time"

"github.com/gnolang/gno/gnovm"
"github.com/gnolang/gno/tm2/pkg/amino"
abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types"
"github.com/gnolang/gno/tm2/pkg/bft/rpc/client"
"github.com/gnolang/gno/tm2/pkg/std"
"github.com/gorilla/mux"
"github.com/gotuna/gotuna"

Expand Down Expand Up @@ -389,7 +389,7 @@ func handlerPackageFile(logger *slog.Logger, app gotuna.App, cfg *Config) http.H
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
pkgpath := "gno.land/p/" + vars["filepath"]
diruri, filename := std.SplitFilepath(pkgpath)
diruri, filename := gnovm.SplitFilepath(pkgpath)
if filename == "" && diruri == pkgpath {
// redirect to diruri + "/"
http.Redirect(w, r, "/p/"+vars["filepath"]+"/", http.StatusFound)
Expand Down
7 changes: 4 additions & 3 deletions gno.land/pkg/keyscli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"os"

"github.com/gnolang/gno/gno.land/pkg/sdk/vm"
"github.com/gnolang/gno/gnovm"
gno "github.com/gnolang/gno/gnovm/pkg/gnolang"
"github.com/gnolang/gno/tm2/pkg/amino"
"github.com/gnolang/gno/tm2/pkg/commands"
Expand Down Expand Up @@ -73,13 +74,13 @@ func execMakeRun(cfg *MakeRunCfg, args []string, cmdio commands.IO) error {
return errors.Wrap(err, "parsing gas fee coin")
}

memPkg := &std.MemPackage{}
memPkg := &gnovm.MemPackage{}
if sourcePath == "-" { // stdin
data, err := io.ReadAll(cmdio.In())
if err != nil {
return fmt.Errorf("could not read stdin: %w", err)
}
memPkg.Files = []*std.MemFile{
memPkg.Files = []*gnovm.MemFile{
{
Name: "stdin.gno",
Body: string(data),
Expand All @@ -97,7 +98,7 @@ func execMakeRun(cfg *MakeRunCfg, args []string, cmdio commands.IO) error {
if err != nil {
return fmt.Errorf("could not read %q: %w", sourcePath, err)
}
memPkg.Files = []*std.MemFile{
memPkg.Files = []*gnovm.MemFile{
{
Name: info.Name(),
Body: string(b),
Expand Down
Loading

1 comment on commit 603f6d3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Go Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 603f6d3 Previous: 0b2c67e Ratio
BenchmarkBinary/EmptyStruct:encode 501.7 ns/op 96 B/op 2 allocs/op 293.2 ns/op 96 B/op 2 allocs/op 1.71
BenchmarkBinary/EmptyStruct:encode - ns/op 501.7 ns/op 293.2 ns/op 1.71
BenchmarkBinary/EmptyStruct:decode 288.3 ns/op 0 B/op 0 allocs/op 134.5 ns/op 0 B/op 0 allocs/op 2.14
BenchmarkBinary/EmptyStruct:decode - ns/op 288.3 ns/op 134.5 ns/op 2.14
BenchmarkBinary/ShortArraysStruct:encode 782.6 ns/op 192 B/op 4 allocs/op 613.8 ns/op 192 B/op 4 allocs/op 1.28
BenchmarkBinary/ShortArraysStruct:encode - ns/op 782.6 ns/op 613.8 ns/op 1.28
BenchmarkBinary/ShortArraysStruct:decode 359.9 ns/op 0 B/op 0 allocs/op 215.1 ns/op 0 B/op 0 allocs/op 1.67
BenchmarkBinary/ShortArraysStruct:decode - ns/op 359.9 ns/op 215.1 ns/op 1.67
BenchmarkBinary/EmbeddedSt1:encode 6058 ns/op 2037 B/op 65 allocs/op 4701 ns/op 2037 B/op 65 allocs/op 1.29
BenchmarkBinary/EmbeddedSt1:encode - ns/op 6058 ns/op 4701 ns/op 1.29
BenchmarkBinary/EmbeddedSt1:decode 3570 ns/op 300 B/op 8 allocs/op 2942 ns/op 300 B/op 8 allocs/op 1.21
BenchmarkBinary/EmbeddedSt1:decode - ns/op 3570 ns/op 2942 ns/op 1.21
BenchmarkBcryptGenerateFromPassword/benchmark-security-param 63657873 ns/op 5130 B/op 9 allocs/op 31889702 ns/op 5125 B/op 9 allocs/op 2.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op 63657873 ns/op 31889702 ns/op 2.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param 127236207 ns/op 5139 B/op 9 allocs/op 31889702 ns/op 5125 B/op 9 allocs/op 3.99
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op 127236207 ns/op 31889702 ns/op 3.99
BenchmarkBcryptGenerateFromPassword/benchmark-security-param 254438188 ns/op 5158 B/op 9 allocs/op 31889702 ns/op 5125 B/op 9 allocs/op 7.98
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op 254438188 ns/op 31889702 ns/op 7.98
BenchmarkBcryptGenerateFromPassword/benchmark-security-param 508723188 ns/op 5196 B/op 10 allocs/op 31889702 ns/op 5125 B/op 9 allocs/op 15.95
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op 508723188 ns/op 31889702 ns/op 15.95
BenchmarkBcryptGenerateFromPassword/benchmark-security-param 1017207001 ns/op 5736 B/op 15 allocs/op 31889702 ns/op 5125 B/op 9 allocs/op 31.90
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op 1017207001 ns/op 31889702 ns/op 31.90
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - allocs/op 15 allocs/op 9 allocs/op 1.67
BenchmarkBcryptGenerateFromPassword/benchmark-security-param 2035191154 ns/op 5528 B/op 13 allocs/op 31889702 ns/op 5125 B/op 9 allocs/op 63.82
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op 2035191154 ns/op 31889702 ns/op 63.82
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - allocs/op 13 allocs/op 9 allocs/op 1.44
BenchmarkSigning 84348 ns/op 1856 B/op 36 allocs/op 25703 ns/op 64 B/op 1 allocs/op 3.28
BenchmarkSigning - ns/op 84348 ns/op 25703 ns/op 3.28
BenchmarkSigning - B/op 1856 B/op 64 B/op 29
BenchmarkSigning - allocs/op 36 allocs/op 1 allocs/op 36
BenchmarkSigning 84288 ns/op 1856 B/op 36 allocs/op 25703 ns/op 64 B/op 1 allocs/op 3.28
BenchmarkSigning - ns/op 84288 ns/op 25703 ns/op 3.28
BenchmarkSigning - B/op 1856 B/op 64 B/op 29
BenchmarkSigning - allocs/op 36 allocs/op 1 allocs/op 36
BenchmarkVerification 166012 ns/op 864 B/op 19 allocs/op 61123 ns/op 0 B/op 0 allocs/op 2.72
BenchmarkVerification - ns/op 166012 ns/op 61123 ns/op 2.72
BenchmarkVerification - B/op 864 B/op 0 B/op +∞
BenchmarkVerification - allocs/op 19 allocs/op 0 allocs/op +∞
BenchmarkVerification 167655 ns/op 864 B/op 19 allocs/op 61123 ns/op 0 B/op 0 allocs/op 2.74
BenchmarkVerification - ns/op 167655 ns/op 61123 ns/op 2.74
BenchmarkVerification - B/op 864 B/op 0 B/op +∞
BenchmarkVerification - allocs/op 19 allocs/op 0 allocs/op +∞
BenchmarkImmutableAvlTreeMemDB 4986715 ns/op 1080967 B/op 22001 allocs/op 3217269 ns/op 844809 B/op 17163 allocs/op 1.55
BenchmarkImmutableAvlTreeMemDB - ns/op 4986715 ns/op 3217269 ns/op 1.55
BenchmarkImmutableAvlTreeMemDB - B/op 1080967 B/op 844809 B/op 1.28
BenchmarkImmutableAvlTreeMemDB - allocs/op 22001 allocs/op 17163 allocs/op 1.28
BenchmarkImmutableAvlTreeMemDB 4328567 ns/op 1021851 B/op 20789 allocs/op 3217269 ns/op 844809 B/op 17163 allocs/op 1.35
BenchmarkImmutableAvlTreeMemDB - ns/op 4328567 ns/op 3217269 ns/op 1.35
BenchmarkImmutableAvlTreeMemDB - B/op 1021851 B/op 844809 B/op 1.21
BenchmarkImmutableAvlTreeMemDB - allocs/op 20789 allocs/op 17163 allocs/op 1.21
BenchmarkRandomBytes/random 68.74 ns/op 16 B/op 1 allocs/op 33.51 ns/op 4 B/op 1 allocs/op 2.05
BenchmarkRandomBytes/random - ns/op 68.74 ns/op 33.51 ns/op 2.05
BenchmarkRandomBytes/random - B/op 16 B/op 4 B/op 4
BenchmarkRandomBytes/random 105.4 ns/op 32 B/op 1 allocs/op 33.51 ns/op 4 B/op 1 allocs/op 3.15
BenchmarkRandomBytes/random - ns/op 105.4 ns/op 33.51 ns/op 3.15
BenchmarkRandomBytes/random - B/op 32 B/op 4 B/op 8
BenchmarkRandomBytes/random 271.3 ns/op 112 B/op 1 allocs/op 33.51 ns/op 4 B/op 1 allocs/op 8.10
BenchmarkRandomBytes/random - ns/op 271.3 ns/op 33.51 ns/op 8.10
BenchmarkRandomBytes/random - B/op 112 B/op 4 B/op 28
BenchmarkRandomBytes/random 2325 ns/op 1024 B/op 1 allocs/op 33.51 ns/op 4 B/op 1 allocs/op 69.38
BenchmarkRandomBytes/random - ns/op 2325 ns/op 33.51 ns/op 69.38
BenchmarkRandomBytes/random - B/op 1024 B/op 4 B/op 256
BenchmarkSmall/boltdb-1000-100-16-40/update 1411863 ns/op 43561 B/op 386 allocs/op 925411 ns/op 37248 B/op 369 allocs/op 1.53
BenchmarkSmall/boltdb-1000-100-16-40/update - ns/op 1411863 ns/op 925411 ns/op 1.53
BenchmarkSmall/memdb-1000-100-16-40/block 19201454 ns/op 9298521 B/op 169658 allocs/op 11745994 ns/op 6590083 B/op 117031 allocs/op 1.63
BenchmarkSmall/memdb-1000-100-16-40/block - ns/op 19201454 ns/op 11745994 ns/op 1.63
BenchmarkSmall/memdb-1000-100-16-40/block - B/op 9298521 B/op 6590083 B/op 1.41
BenchmarkSmall/memdb-1000-100-16-40/block - allocs/op 169658 allocs/op 117031 allocs/op 1.45
BenchmarkMedium/boltdb-100000-100-16-40/update - B/op 132838 B/op 104914 B/op 1.27
BenchmarkMedium/memdb-100000-100-16-40/update 1302427 ns/op 378505 B/op 7501 allocs/op 1018775 ns/op 261962 B/op 5059 allocs/op 1.28
BenchmarkMedium/memdb-100000-100-16-40/update - ns/op 1302427 ns/op 1018775 ns/op 1.28
BenchmarkMedium/memdb-100000-100-16-40/update - B/op 378505 B/op 261962 B/op 1.44
BenchmarkMedium/memdb-100000-100-16-40/update - allocs/op 7501 allocs/op 5059 allocs/op 1.48
BenchmarkLevelDBBatchSizes/goleveldb-100000-400-16-40/update - B/op 48217 B/op 38308 B/op 1.26
BenchmarkLevelDBBatchSizes/goleveldb-100000-400-16-40/update - allocs/op 576 allocs/op 451 allocs/op 1.28
BenchmarkLevelDBBatchSizes/goleveldb-100000-2000-16-40/block - B/op 107742066 B/op 78417828 B/op 1.37
BenchmarkLevelDBBatchSizes/goleveldb-100000-2000-16-40/block - allocs/op 1268608 allocs/op 967953 allocs/op 1.31
BenchmarkHash/ripemd160 2837 ns/op 25 B/op 1 allocs/op 702.7 ns/op 25 B/op 1 allocs/op 4.04
BenchmarkHash/ripemd160 - ns/op 2837 ns/op 702.7 ns/op 4.04
BenchmarkHash/sha2-256 523.5 ns/op 33 B/op 1 allocs/op 169.6 ns/op 33 B/op 1 allocs/op 3.09
BenchmarkHash/sha2-256 - ns/op 523.5 ns/op 169.6 ns/op 3.09
BenchmarkHash/sha3-256 1812 ns/op 33 B/op 1 allocs/op 715.5 ns/op 33 B/op 1 allocs/op 2.53
BenchmarkHash/sha3-256 - ns/op 1812 ns/op 715.5 ns/op 2.53
BenchmarkWriteSecretConnection 6178 ns/op 0 B/op 0 allocs/op 4046 ns/op 0 B/op 0 allocs/op 1.53
BenchmarkWriteSecretConnection - ns/op 6178 ns/op 4046 ns/op 1.53
BenchmarkReadSecretConnection 3760 ns/op 0 B/op 0 allocs/op 2348 ns/op 0 B/op 0 allocs/op 1.60
BenchmarkReadSecretConnection - ns/op 3760 ns/op 2348 ns/op 1.60

This comment was automatically generated by workflow using github-action-benchmark.

CC: @ajnavarro @thehowl @zivkovicmilos

Please sign in to comment.