TP-Test Tool

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TP-Test工具

| username: TiDBer_2G7ROOlD

There is a tool called TP-Test, which is used by TiDB to test transactions. Does anyone have related materials and code?

| username: Kongdom | Original post link

:thinking: I couldn’t find it. Where did you see it?

| username: TiDBer_2G7ROOlD | Original post link

I couldn’t find it either, so I’m asking.

| username: xfworld | Original post link

Waiting for the answer…

| username: Kongdom | Original post link

:astonished: Where did you see that?

| username: TiDBer_vfJBUcxl | Original post link

I couldn’t find it either.

| username: ShawnYan | Original post link

Are you referring to tiup bench?

| username: TiDBer_2G7ROOlD | Original post link

It’s not a stress test, it’s a functionality test.

| username: Kongdom | Original post link

:joy: I initially thought the same, but no matter how you abbreviate it, it can’t be shortened to TP.

| username: TiDBer_2G7ROOlD | Original post link

Someone told me.

| username: Kongdom | Original post link

:thinking: Maybe you misheard, you can ask again.

| username: TiDBer_2G7ROOlD | Original post link

It is probably possible to randomly generate SQL specifically for testing transactions. It is built on the basis of go-randgen.

| username: Kongdom | Original post link

Although the second tool is like what you said, I feel the first one is what you need.

| username: TiDBer_2G7ROOlD | Original post link

I also saw the join query, it’s testing transactions. It seems like it just can’t be found :wink:

| username: Kongdom | Original post link

The first one I posted is about testing transactions, and it is also randomly generated.

| username: TiDBer_2G7ROOlD | Original post link

Is it this one? I’ve used this tool before; it’s for stress testing. It’s not this one either.

| username: ShawnYan | Original post link

PingCAP also maintains this library

| username: Jellybean | Original post link

This is the first time I’ve heard of this tool. Where did you learn about it, brother? Let’s study it together.

| username: ShawnYan | Original post link

This article is worth reading.

| username: redgame | Original post link

Automated? Looks like there’s one less job.