From 724debfdcdd781af66a44f3d442fbe1ff634e5d0 Mon Sep 17 00:00:00 2001 From: Alejandro Lopez Date: Fri, 3 Mar 2023 12:33:08 +0300 Subject: [PATCH] [#81] node: Add basic read/write benchmarks for substorages Signed-off-by: Alejandro Lopez --- go.mod | 3 +- go.sum | Bin 90897 -> 90897 bytes .../blobstor/memstore/control.go | 15 + .../blobstor/memstore/memstore.go | 168 ++++++++ .../blobstor/memstore/memstore_test.go | 68 +++ .../blobstor/memstore/option.go | 42 ++ .../blobstor/perf_test.go | 402 ++++++++++++++++++ 7 files changed, 697 insertions(+), 1 deletion(-) create mode 100644 pkg/local_object_storage/blobstor/memstore/control.go create mode 100644 pkg/local_object_storage/blobstor/memstore/memstore.go create mode 100644 pkg/local_object_storage/blobstor/memstore/memstore_test.go create mode 100644 pkg/local_object_storage/blobstor/memstore/option.go create mode 100644 pkg/local_object_storage/blobstor/perf_test.go diff --git a/go.mod b/go.mod index f27cf415c..61cd57647 100644 --- a/go.mod +++ b/go.mod @@ -39,6 +39,8 @@ require ( gopkg.in/yaml.v3 v3.0.1 ) +require golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2 + require ( git.frostfs.info/TrueCloudLab/frostfs-crypto v0.6.0 // indirect git.frostfs.info/TrueCloudLab/rfc6979 v0.4.0 // indirect @@ -91,7 +93,6 @@ require ( github.com/urfave/cli v1.22.5 // indirect go.uber.org/multierr v1.9.0 // indirect golang.org/x/crypto v0.4.0 // indirect - golang.org/x/exp v0.0.0-20221227203929-1b447090c38c // indirect golang.org/x/net v0.4.0 // indirect golang.org/x/sync v0.1.0 // indirect golang.org/x/sys v0.3.0 // indirect diff --git a/go.sum b/go.sum index c743d706d15356cd25050fe72e0af8de7542b284..93f805d21f46b9e4cd524f20e5a2587fe12c04a9 100644 GIT binary patch delta 116 zcmbPujCJBM)(zXvxEmW78JQTG8yguL=q6j5rWqxfBpVr}87X8KT6vWvo2M5S<{23# zdwDqLI)+ym_+)1076cet_(bJ~R%C~m`WBeGMj7UMPIf#gBMCGEyJ4G+&fcF20EpTp A7ytkO delta 116 zcmbPujCJBM)(zXvxEmQ78JQay7+V@y>KZ1Qn3x+_8YCNABr9YXTDj+!6&i&bC*^r~ zW#)Q>7-g2`nwe%tBzu}iRfXhbMtLN=Ifmr