Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bench: Add benchmark test functionality for single node Tarantool topology #656

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

Kirill-Churkin
Copy link
Contributor

@Kirill-Churkin Kirill-Churkin commented Oct 29, 2021

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 

What has been done? Why? What problem is being solved?

I didn't forget about

  • Tests
  • Changelog
  • Documentation

Closes #???

@Totktonada Totktonada requested a review from LeonidVas October 29, 2021 15:43
cli/bench/bench.go Outdated Show resolved Hide resolved
cli/bench/insert.go Outdated Show resolved Hide resolved
cli/bench/config.go Outdated Show resolved Hide resolved
cli/bench/bench.go Outdated Show resolved Hide resolved
cli/bench/delete.go Outdated Show resolved Hide resolved
cli/bench/bench.go Outdated Show resolved Hide resolved
cli/bench/bench.go Outdated Show resolved Hide resolved
cli/bench/bench.go Outdated Show resolved Hide resolved
cli/bench/bench.go Outdated Show resolved Hide resolved
cli/bench/config.go Outdated Show resolved Hide resolved
cli/bench/connect.go Outdated Show resolved Hide resolved
cli/bench/delete.go Outdated Show resolved Hide resolved
cli/bench/select.go Outdated Show resolved Hide resolved
cli/bench/types.go Outdated Show resolved Hide resolved
cli/bench/types.go Outdated Show resolved Hide resolved
cli/bench/types.go Outdated Show resolved Hide resolved
cli/bench/update.go Outdated Show resolved Hide resolved
cli/bench/utils.go Outdated Show resolved Hide resolved
cli/commands/bench.go Outdated Show resolved Hide resolved
cli/commands/bench.go Outdated Show resolved Hide resolved
cli/commands/bench.go Outdated Show resolved Hide resolved
cli/commands/bench.go Outdated Show resolved Hide resolved
@LeonidVas
Copy link
Collaborator

Hi!
You continue to ignore comments from #656 (review) :

Why are you removing operationsMap? The idea was fine (IMHO), just leave only insert for the first time.

cli/bench/bench.go Outdated Show resolved Hide resolved
cli/bench/bench.go Outdated Show resolved Hide resolved
cli/bench/bench.go Outdated Show resolved Hide resolved
cli/bench/bench.go Outdated Show resolved Hide resolved
@Kirill-Churkin Kirill-Churkin force-pushed the tarantool-benchmark branch 2 times, most recently from 6ae2802 to e11193c Compare November 26, 2021 12:24
Copy link
Collaborator

@LeonidVas LeonidVas left a comment

Choose a reason for hiding this comment

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

Hi!
From #656 (comment) :

I leave several minors comments, so you can accept or dispute them and start getting a second LGTM. I think it's logical to finish with Alexey (Up to you).

CHANGELOG.md Outdated Show resolved Hide resolved
cli/bench/bench.go Show resolved Hide resolved
cli/bench/bench.go Outdated Show resolved Hide resolved
cli/bench/bench.go Show resolved Hide resolved
cli/bench/bench.go Outdated Show resolved Hide resolved
cli/context/context.go Outdated Show resolved Hide resolved
cli/context/context.go Outdated Show resolved Hide resolved
cli/context/context.go Outdated Show resolved Hide resolved
cli/context/context.go Outdated Show resolved Hide resolved
cli/commands/bench.go Show resolved Hide resolved
@LeonidVas
Copy link
Collaborator

And yet one question: "Do you have test results on various hardware, or the test works in theory but has not been tested in practice?"

cli/bench/space.go Outdated Show resolved Hide resolved
cli/bench/space.go Outdated Show resolved Hide resolved
@Kirill-Churkin Kirill-Churkin force-pushed the tarantool-benchmark branch 6 times, most recently from 4ef72af to 5de37a0 Compare December 2, 2021 17:27
Copy link
Collaborator

@LeonidVas LeonidVas left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@mRrvz mRrvz left a comment

Choose a reason for hiding this comment

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

Now the PR looks beautiful!

Please, fix @LeonidVas comments and CI.

@filonenko-mikhail
Copy link

And yet one question: "Do you have test results on various hardware, or the test works in theory but has not been tested in practice?"

macbook pro i7 (2.9Ghz) ddr3 at monday morning

Tarantool 2.8.2 (Binary) bf5c2dfd-93a1-4fab-9a34-e280d1c7de80

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: 1346103
	Failed  operations: 0
	Request count: 1348694
	Time (seconds): 10.000301
	Requests per second: 134865

@Kirill-Churkin Kirill-Churkin force-pushed the tarantool-benchmark branch 4 times, most recently from 33d5e9c to 6f99d15 Compare December 7, 2021 10:31
@LeonidVas LeonidVas force-pushed the tarantool-benchmark branch from 6f99d15 to 67c6be6 Compare December 7, 2021 12:08
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

Part of tarantool#645
@LeonidVas LeonidVas force-pushed the tarantool-benchmark branch from 67c6be6 to 88ea630 Compare December 7, 2021 12:22
@LeonidVas LeonidVas merged commit f04035c into tarantool:master Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants