From b98910d694030aa904c4ff4ba3e09fc6beb36077 Mon Sep 17 00:00:00 2001 From: Kirill-Churkin Date: Tue, 7 Dec 2021 13:31:49 +0300 Subject: [PATCH] Part of #645 bench: Add benchmark test functionality for Tarantool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User setup Tarantool single node or cluster and try to understand «How many specific traffic Tarantool can handle on this hardware» The same official things are for redis, postgresql and aerospike. Cartridge bench module makes some load for Tarantool. user@cartridge-cli % ./cartridge bench Tarantool 2.8.2 (Binary) f4897ffe-98dd-40fc-a6f2-21ca8bb52fe7 Parameters: URL: 127.0.0.1:3301 user: guest connections: 10 simultaneous requests: 10 duration: 10 seconds key size: 10 bytes data size: 20 bytes Data schema | key | value ------------------------------------------ | random(10) | random(20) Benchmark start ... Benchmark stop Results: Success operations: 1169481 Failed operations: 0 Request count: 1170485 Time (seconds): 10.000551801 Requests per second: 117042 --- go.mod | 45 ++++++++++++++++++++++++--------------------- go.sum | 2 ++ 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/go.mod b/go.mod index b8a5bde21..e5f24c0db 100644 --- a/go.mod +++ b/go.mod @@ -4,54 +4,58 @@ go 1.17 require ( github.com/FZambia/tarantool v0.2.1 - github.com/Microsoft/go-winio v0.4.17 // indirect - github.com/StackExchange/wmi v0.0.0-20210224194228-fe8f1750fd46 // indirect github.com/adam-hanna/arrayOperations v0.2.6 github.com/alecthomas/participle/v2 v2.0.0-alpha4 github.com/apex/log v1.4.0 github.com/avast/retry-go v3.0.0+incompatible github.com/briandowns/spinner v1.11.1 github.com/c-bata/go-prompt v0.2.5 - github.com/containerd/containerd v1.5.8 // indirect github.com/dave/jennifer v1.4.1 + github.com/docker/docker v20.10.11+incompatible + github.com/fatih/color v1.7.0 + github.com/fatih/structs v1.1.0 + github.com/hashicorp/go-version v1.2.0 + github.com/hpcloud/tail v1.0.0 + github.com/magefile/mage v1.11.0 + github.com/mattn/go-isatty v0.0.12 + github.com/mitchellh/mapstructure v1.4.1 + github.com/otiai10/copy v1.2.0 + github.com/pmezard/go-difflib v1.0.0 + github.com/shirou/gopsutil v3.21.2+incompatible + github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 + github.com/spf13/cobra v1.0.1-0.20200815144417-81e0311edd0b + github.com/spf13/pflag v1.0.5 + github.com/stretchr/testify v1.6.1 + github.com/vmihailenco/msgpack/v5 v5.1.0 + github.com/yuin/gopher-lua v0.0.0-20191220021717-ab39c6098bdb + gopkg.in/yaml.v2 v2.4.0 +) + +require ( + github.com/Microsoft/go-winio v0.4.17 // indirect + github.com/StackExchange/wmi v0.0.0-20210224194228-fe8f1750fd46 // indirect + github.com/containerd/containerd v1.5.8 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/docker/distribution v2.7.1+incompatible // indirect - github.com/docker/docker v20.10.7+incompatible github.com/docker/go-connections v0.4.0 // indirect github.com/docker/go-units v0.4.0 // indirect - github.com/fatih/color v1.7.0 - github.com/fatih/structs v1.1.0 github.com/go-ole/go-ole v1.2.5 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/protobuf v1.5.0 // indirect - github.com/hashicorp/go-version v1.2.0 - github.com/hpcloud/tail v1.0.0 github.com/inconshreveable/mousetrap v1.0.0 // indirect - github.com/magefile/mage v1.11.0 github.com/mattn/go-colorable v0.1.7 // indirect - github.com/mattn/go-isatty v0.0.12 github.com/mattn/go-runewidth v0.0.9 // indirect github.com/mattn/go-tty v0.0.3 // indirect - github.com/mitchellh/mapstructure v1.4.1 github.com/morikuni/aec v1.0.0 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.0.2 // indirect - github.com/otiai10/copy v1.2.0 github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.2.0-beta.2 // indirect - github.com/pmezard/go-difflib v1.0.0 - github.com/shirou/gopsutil v3.21.2+incompatible - github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546 // indirect github.com/sirupsen/logrus v1.8.1 // indirect - github.com/spf13/cobra v1.0.1-0.20200815144417-81e0311edd0b - github.com/spf13/pflag v1.0.5 - github.com/stretchr/testify v1.6.1 github.com/tklauser/go-sysconf v0.3.4 // indirect github.com/tklauser/numcpus v0.2.1 // indirect - github.com/vmihailenco/msgpack/v5 v5.1.0 github.com/vmihailenco/tagparser v0.1.2 // indirect - github.com/yuin/gopher-lua v0.0.0-20191220021717-ab39c6098bdb golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 // indirect golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect google.golang.org/genproto v0.0.0-20201110150050-8816d57aaa9a // indirect @@ -59,7 +63,6 @@ require ( google.golang.org/protobuf v1.27.1 // indirect gopkg.in/fsnotify.v1 v1.4.7 // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect - gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect ) diff --git a/go.sum b/go.sum index 1a00f4473..64396a0f4 100644 --- a/go.sum +++ b/go.sum @@ -248,6 +248,8 @@ github.com/docker/distribution v2.7.1+incompatible h1:a5mlkVzth6W5A4fOsS3D2EO5BU github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/docker v20.10.7+incompatible h1:Z6O9Nhsjv+ayUEeI1IojKbYcsGdgYSNqxe1s2MYzUhQ= github.com/docker/docker v20.10.7+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v20.10.11+incompatible h1:OqzI/g/W54LczvhnccGqniFoQghHx3pklbLuhfXpqGo= +github.com/docker/docker v20.10.11+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-events v0.0.0-20170721190031-9461782956ad/go.mod h1:Uw6UezgYA44ePAFQYUehOuCzmy5zmg/+nl2ZfMWGkpA=