mirror of https://github.com/valkey-io/valkey
change tests order
Signed-off-by: Ran Shidlansik <ranshid@amazon.com>
This commit is contained in:
parent
8ce15e5623
commit
1ebb403539
|
|
@ -2320,21 +2320,15 @@ int main(int argc, char **argv) {
|
|||
free(cmd);
|
||||
}
|
||||
|
||||
if (test_is_selected("sadd")) {
|
||||
len = valkeyFormatCommand(&cmd, "SADD myset%s element:__rand_int__", tag);
|
||||
benchmark("SADD", cmd, len);
|
||||
free(cmd);
|
||||
}
|
||||
|
||||
if (test_is_selected("hset")) {
|
||||
len = valkeyFormatCommand(&cmd, "HSET myhash%s element:__rand_int__ %s", tag, data);
|
||||
benchmark("HSET", cmd, len);
|
||||
free(cmd);
|
||||
}
|
||||
|
||||
if (test_is_selected("spop")) {
|
||||
len = valkeyFormatCommand(&cmd, "SPOP myset%s", tag);
|
||||
benchmark("SPOP", cmd, len);
|
||||
if (test_is_selected("sadd")) {
|
||||
len = valkeyFormatCommand(&cmd, "SADD myset%s element:__rand_int__", tag);
|
||||
benchmark("SADD", cmd, len);
|
||||
free(cmd);
|
||||
}
|
||||
|
||||
|
|
@ -2344,6 +2338,12 @@ int main(int argc, char **argv) {
|
|||
free(cmd);
|
||||
}
|
||||
|
||||
if (test_is_selected("spop")) {
|
||||
len = valkeyFormatCommand(&cmd, "SPOP myset%s", tag);
|
||||
benchmark("SPOP", cmd, len);
|
||||
free(cmd);
|
||||
}
|
||||
|
||||
if (test_is_selected("zadd")) {
|
||||
char *score = "0";
|
||||
if (config.replace_placeholders) score = "__rand_int__";
|
||||
|
|
@ -2352,12 +2352,6 @@ int main(int argc, char **argv) {
|
|||
free(cmd);
|
||||
}
|
||||
|
||||
if (test_is_selected("zpopmin")) {
|
||||
len = valkeyFormatCommand(&cmd, "ZPOPMIN myzset%s", tag);
|
||||
benchmark("ZPOPMIN", cmd, len);
|
||||
free(cmd);
|
||||
}
|
||||
|
||||
if (test_is_selected("zscore")) {
|
||||
len = valkeyFormatCommand(&cmd, "ZSCORE myzset%s element:__rand_1st__", tag);
|
||||
benchmark("ZSCORE", cmd, len);
|
||||
|
|
@ -2371,6 +2365,12 @@ int main(int argc, char **argv) {
|
|||
free(cmd);
|
||||
}
|
||||
|
||||
if (test_is_selected("zpopmin")) {
|
||||
len = valkeyFormatCommand(&cmd, "ZPOPMIN myzset%s", tag);
|
||||
benchmark("ZPOPMIN", cmd, len);
|
||||
free(cmd);
|
||||
}
|
||||
|
||||
if (test_is_selected("lrange") || test_is_selected("lrange_100") || test_is_selected("lrange_300") ||
|
||||
test_is_selected("lrange_500") || test_is_selected("lrange_600")) {
|
||||
len = valkeyFormatCommand(&cmd, "LPUSH mylist%s %s", tag, data);
|
||||
|
|
|
|||
Loading…
Reference in New Issue