Created
July 21, 2022 00:06
-
-
Save shibukawa/2cf8fc518d58f5031619798d3d43ceb7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"math/rand" | |
"strconv" | |
"testing" | |
"github.com/go-redis/redis/v9" | |
) | |
func randRange(min, max float64) float64 { | |
return min + rand.Float64()*(max-min) | |
} | |
func BenchmarkRedisGeoAdd(b *testing.B) { | |
r := redis.NewClient(&redis.Options{ | |
Addr: "localhost:6379", // use default Addr | |
Password: "", // no password set | |
DB: 0, // use default DB | |
}) | |
ctx := context.Background() | |
r.Del(ctx, "kanto") | |
b.ResetTimer() | |
for i := 0; i < b.N; i++ { | |
res := r.GeoAdd(ctx, "kanto", &redis.GeoLocation{ | |
Name: strconv.Itoa(i), | |
Longitude: randRange(139, 141), | |
Latitude: randRange(35, 37), | |
}) | |
if res.Err() != nil { | |
b.Errorf("error: %v", res.Err()) | |
} | |
} | |
} | |
func BenchmarkRedisGeoAdd2(b *testing.B) { | |
r := redis.NewClient(&redis.Options{ | |
Addr: "localhost:6379", // use default Addr | |
Password: "", // no password set | |
DB: 0, // use default DB | |
}) | |
ctx := context.Background() | |
r.Del(ctx, "kanto") | |
b.ResetTimer() | |
for i := 0; i < b.N; i++ { | |
res := r.GeoAdd(ctx, "kanto", &redis.GeoLocation{ | |
Name: strconv.Itoa(i) + "1", | |
Longitude: randRange(139, 141), | |
Latitude: randRange(35, 37), | |
}, &redis.GeoLocation{ | |
Name: strconv.Itoa(i) + "2", | |
Longitude: randRange(139, 141), | |
Latitude: randRange(35, 37), | |
}) | |
if res.Err() != nil { | |
b.Errorf("error: %v", res.Err()) | |
} | |
} | |
} | |
func BenchmarkGeoSearch(b *testing.B) { | |
r := redis.NewClient(&redis.Options{ | |
Addr: "localhost:6379", // use default Addr | |
Password: "", // no password set | |
DB: 0, // use default DB | |
}) | |
ctx := context.Background() | |
r.Del(ctx, "kanto") | |
testcases := []struct { | |
name string | |
members int | |
boxSize float64 | |
}{ | |
{ | |
name: "1000 members, 1km", | |
members: 1000, | |
boxSize: 1, | |
}, | |
{ | |
name: "1000 members, 2km", | |
members: 1000, | |
boxSize: 2, | |
}, | |
{ | |
name: "10000 members, 1km", | |
members: 10000, | |
boxSize: 1, | |
}, | |
{ | |
name: "10000 members, 2km", | |
members: 10000, | |
boxSize: 2, | |
}, | |
{ | |
name: "100000 members, 1km", | |
members: 100000, | |
boxSize: 1, | |
}, | |
{ | |
name: "100000 members, 2km", | |
members: 100000, | |
boxSize: 2, | |
}, | |
} | |
for _, tc := range testcases { | |
b.Run(tc.name, func(b *testing.B) { | |
for i := 0; i < tc.members; i++ { | |
res := r.GeoAdd(ctx, "kanto", &redis.GeoLocation{ | |
Name: strconv.Itoa(i), | |
Longitude: randRange(139, 141), | |
Latitude: randRange(35, 37), | |
}) | |
if res.Err() != nil { | |
b.Errorf("error: %v", res.Err()) | |
} | |
} | |
b.ResetTimer() | |
for i := 0; i < b.N; i++ { | |
res := r.GeoSearch(ctx, "kanto", &redis.GeoSearchQuery{ | |
Longitude: randRange(139, 141), | |
Latitude: randRange(35, 37), | |
BoxWidth: tc.boxSize, | |
BoxHeight: tc.boxSize, | |
BoxUnit: "km", | |
}) | |
b.Log(res.Result()) | |
} | |
}) | |
} | |
} | |
func BenchmarkGeoRadius(b *testing.B) { | |
r := redis.NewClient(&redis.Options{ | |
Addr: "localhost:6379", // use default Addr | |
Password: "", // no password set | |
DB: 0, // use default DB | |
}) | |
ctx := context.Background() | |
r.Del(ctx, "kanto") | |
testcases := []struct { | |
name string | |
members int | |
radius float64 | |
}{ | |
{ | |
name: "1000 members, 1km", | |
members: 1000, | |
radius: 1, | |
}, | |
{ | |
name: "1000 members, 2km", | |
members: 1000, | |
radius: 2, | |
}, | |
{ | |
name: "10000 members, 1km", | |
members: 10000, | |
radius: 1, | |
}, | |
{ | |
name: "10000 members, 2km", | |
members: 10000, | |
radius: 2, | |
}, | |
{ | |
name: "100000 members, 1km", | |
members: 100000, | |
radius: 1, | |
}, | |
{ | |
name: "100000 members, 2km", | |
members: 100000, | |
radius: 2, | |
}, | |
} | |
for _, tc := range testcases { | |
b.Run(tc.name, func(b *testing.B) { | |
for i := 0; i < tc.members; i++ { | |
res := r.GeoAdd(ctx, "kanto", &redis.GeoLocation{ | |
Name: strconv.Itoa(i), | |
Longitude: randRange(139, 141), | |
Latitude: randRange(35, 37), | |
}) | |
if res.Err() != nil { | |
b.Errorf("error: %v", res.Err()) | |
} | |
} | |
b.ResetTimer() | |
for i := 0; i < b.N; i++ { | |
res := r.GeoRadius(ctx, "kanto", | |
randRange(139, 141), | |
randRange(35, 37), | |
&redis.GeoRadiusQuery{ | |
Radius: tc.radius, | |
Unit: "km", | |
}) | |
b.Log(res.Result()) | |
} | |
}) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% go test -bench . | |
goos: darwin | |
goarch: arm64 | |
pkg: redisbench | |
BenchmarkRedisRand-8 45308622 26.35 ns/op | |
BenchmarkRedisGeoAdd-8 54361 20613 ns/op | |
BenchmarkRedisGeoAdd2-8 50223 23150 ns/op | |
BenchmarkGeoSearch/1000_members,_1km-8 48444 24421 ns/op | |
--- BENCH: BenchmarkGeoSearch/1000_members,_1km-8 | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
... [output truncated] | |
BenchmarkGeoSearch/1000_members,_2km-8 51962 23032 ns/op | |
--- BENCH: BenchmarkGeoSearch/1000_members,_2km-8 | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
... [output truncated] | |
BenchmarkGeoSearch/10000_members,_1km-8 51200 23416 ns/op | |
--- BENCH: BenchmarkGeoSearch/10000_members,_1km-8 | |
main_test.go:135: [] <nil> | |
main_test.go:135: [284] <nil> | |
main_test.go:135: [4082] <nil> | |
main_test.go:135: [8912] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [142] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [] <nil> | |
... [output truncated] | |
BenchmarkGeoSearch/10000_members,_2km-8 49142 24496 ns/op | |
--- BENCH: BenchmarkGeoSearch/10000_members,_2km-8 | |
main_test.go:135: [1525] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [1213] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [4953] <nil> | |
main_test.go:135: [9133 7927] <nil> | |
main_test.go:135: [9766 6028] <nil> | |
main_test.go:135: [] <nil> | |
main_test.go:135: [1705] <nil> | |
main_test.go:135: [] <nil> | |
... [output truncated] | |
BenchmarkGeoSearch/100000_members,_1km-8 45294 26345 ns/op | |
--- BENCH: BenchmarkGeoSearch/100000_members,_1km-8 | |
main_test.go:135: [8622] <nil> | |
main_test.go:135: [97278 84129 75709 56105 62181] <nil> | |
main_test.go:135: [35954 97183 11462 87281 85456] <nil> | |
main_test.go:135: [23865 80004] <nil> | |
main_test.go:135: [95476 4365] <nil> | |
main_test.go:135: [73590 28221 80580 46865] <nil> | |
main_test.go:135: [44416 7656 32526 900] <nil> | |
main_test.go:135: [68586 67180 77124] <nil> | |
main_test.go:135: [14441 46924] <nil> | |
main_test.go:135: [68085 25488] <nil> | |
... [output truncated] | |
BenchmarkGeoSearch/100000_members,_2km-8 35678 33436 ns/op | |
--- BENCH: BenchmarkGeoSearch/100000_members,_2km-8 | |
main_test.go:135: [10232 13149 30126 37912 64054 1894 48494 74962 56393] <nil> | |
main_test.go:135: [43817 23498 8510 9770 12294 82204 83882 21147 70058 54486] <nil> | |
main_test.go:135: [48250 52023 95025 72510 25278 24078 38800 34770 33851 17227] <nil> | |
main_test.go:135: [91123 22782 25563 72356 32697 93623 52981 83136 91863 27794] <nil> | |
main_test.go:135: [34323 54696 83217 95202 67927 21710 22109 33556 63185] <nil> | |
main_test.go:135: [44940 92055 68605 13964 71499 64583 34873] <nil> | |
main_test.go:135: [67160 9553 59933 98966 82892 1958 3708 12597 79527] <nil> | |
main_test.go:135: [89851 97646 19244 97508 56721 8638 19623 11504 13624 17107 86307 93752 20876 59958 92157 10657] <nil> | |
main_test.go:135: [59539 43547 10041 69058 23260 31349 75591 98219 4320] <nil> | |
main_test.go:135: [32736 34330 44208 35031 11971 85035] <nil> | |
... [output truncated] | |
BenchmarkGeoRadius/1000_members,_1km-8 53253 22513 ns/op | |
--- BENCH: BenchmarkGeoRadius/1000_members,_1km-8 | |
main_test.go:208: [] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [] <nil> | |
... [output truncated] | |
BenchmarkGeoRadius/1000_members,_2km-8 51787 23055 ns/op | |
--- BENCH: BenchmarkGeoRadius/1000_members,_2km-8 | |
main_test.go:208: [] <nil> | |
main_test.go:208: [{191 0 0 0 0}] <nil> | |
main_test.go:208: [{109 0 0 0 0}] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [{617 0 0 0 0}] <nil> | |
main_test.go:208: [{973 0 0 0 0}] <nil> | |
main_test.go:208: [] <nil> | |
... [output truncated] | |
BenchmarkGeoRadius/10000_members,_1km-8 49750 24155 ns/op | |
--- BENCH: BenchmarkGeoRadius/10000_members,_1km-8 | |
main_test.go:208: [{8593 0 0 0 0}] <nil> | |
main_test.go:208: [{8054 0 0 0 0} {5830 0 0 0 0}] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [{4220 0 0 0 0}] <nil> | |
main_test.go:208: [{629 0 0 0 0} {4730 0 0 0 0} {7240 0 0 0 0}] <nil> | |
main_test.go:208: [{9397 0 0 0 0}] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [{8972 0 0 0 0}] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [{3158 0 0 0 0}] <nil> | |
... [output truncated] | |
BenchmarkGeoRadius/10000_members,_2km-8 44596 26977 ns/op | |
--- BENCH: BenchmarkGeoRadius/10000_members,_2km-8 | |
main_test.go:208: [{6308 0 0 0 0} {5781 0 0 0 0} {853 0 0 0 0}] <nil> | |
main_test.go:208: [{8818 0 0 0 0} {2241 0 0 0 0} {9234 0 0 0 0} {3809 0 0 0 0} {6439 0 0 0 0} {6297 0 0 0 0} {1823 0 0 0 0}] <nil> | |
main_test.go:208: [{482 0 0 0 0} {557 0 0 0 0} {1419 0 0 0 0} {9418 0 0 0 0}] <nil> | |
main_test.go:208: [] <nil> | |
main_test.go:208: [{2601 0 0 0 0} {4789 0 0 0 0}] <nil> | |
main_test.go:208: [{3842 0 0 0 0} {2576 0 0 0 0} {9503 0 0 0 0} {5724 0 0 0 0}] <nil> | |
main_test.go:208: [{9204 0 0 0 0} {3288 0 0 0 0} {8406 0 0 0 0} {8778 0 0 0 0}] <nil> | |
main_test.go:208: [{967 0 0 0 0} {2274 0 0 0 0} {880 0 0 0 0} {4905 0 0 0 0}] <nil> | |
main_test.go:208: [{2436 0 0 0 0} {4111 0 0 0 0} {86 0 0 0 0} {4863 0 0 0 0} {9287 0 0 0 0}] <nil> | |
main_test.go:208: [{3081 0 0 0 0} {3419 0 0 0 0} {6145 0 0 0 0} {2184 0 0 0 0}] <nil> | |
... [output truncated] | |
BenchmarkGeoRadius/100000_members,_1km-8 36806 32511 ns/op | |
--- BENCH: BenchmarkGeoRadius/100000_members,_1km-8 | |
main_test.go:208: [{85442 0 0 0 0} {14606 0 0 0 0} {123 0 0 0 0} {3607 0 0 0 0} {82950 0 0 0 0} {12405 0 0 0 0} {7855 0 0 0 0} {31412 0 0 0 0} {20713 0 0 0 0}] <nil> | |
main_test.go:208: [{38380 0 0 0 0} {89445 0 0 0 0} {10376 0 0 0 0} {18690 0 0 0 0} {70815 0 0 0 0} {38725 0 0 0 0} {19284 0 0 0 0} {23677 0 0 0 0} {72489 0 0 0 0}] <nil> | |
main_test.go:208: [{5091 0 0 0 0} {56630 0 0 0 0} {98482 0 0 0 0} {48190 0 0 0 0} {36815 0 0 0 0} {907 0 0 0 0} {58333 0 0 0 0} {37833 0 0 0 0}] <nil> | |
main_test.go:208: [{12445 0 0 0 0} {30236 0 0 0 0} {53233 0 0 0 0} {3999 0 0 0 0} {15279 0 0 0 0} {57060 0 0 0 0} {57159 0 0 0 0}] <nil> | |
main_test.go:208: [{83614 0 0 0 0} {12411 0 0 0 0} {25766 0 0 0 0} {71290 0 0 0 0} {39862 0 0 0 0} {24603 0 0 0 0} {89407 0 0 0 0} {99771 0 0 0 0} {53047 0 0 0 0}] <nil> | |
main_test.go:208: [{23473 0 0 0 0} {26112 0 0 0 0} {30971 0 0 0 0} {61443 0 0 0 0} {76053 0 0 0 0} {3819 0 0 0 0} {91479 0 0 0 0} {86201 0 0 0 0} {39301 0 0 0 0} {37160 0 0 0 0} {74681 0 0 0 0}] <nil> | |
main_test.go:208: [{48700 0 0 0 0} {24297 0 0 0 0} {45233 0 0 0 0} {23665 0 0 0 0} {21964 0 0 0 0} {96101 0 0 0 0} {4847 0 0 0 0} {80066 0 0 0 0} {8125 0 0 0 0} {40893 0 0 0 0}] <nil> | |
main_test.go:208: [{32952 0 0 0 0} {27735 0 0 0 0} {75768 0 0 0 0} {67845 0 0 0 0} {9808 0 0 0 0} {8697 0 0 0 0} {80949 0 0 0 0}] <nil> | |
main_test.go:208: [{35898 0 0 0 0} {94072 0 0 0 0} {47210 0 0 0 0} {39769 0 0 0 0} {76270 0 0 0 0}] <nil> | |
main_test.go:208: [{59483 0 0 0 0} {35696 0 0 0 0} {57924 0 0 0 0}] <nil> | |
... [output truncated] | |
BenchmarkGeoRadius/100000_members,_2km-8 23302 51519 ns/op | |
--- BENCH: BenchmarkGeoRadius/100000_members,_2km-8 | |
main_test.go:208: [{46594 0 0 0 0} {78484 0 0 0 0} {74863 0 0 0 0} {16241 0 0 0 0} {71971 0 0 0 0} {701 0 0 0 0} {10569 0 0 0 0} {9326 0 0 0 0} {97422 0 0 0 0} {88608 0 0 0 0} {97963 0 0 0 0} {28597 0 0 0 0} {49253 0 0 0 0} {54441 0 0 0 0} {85638 0 0 0 0} {55588 0 0 0 0} {43570 0 0 0 0} {1555 0 0 0 0}] <nil> | |
main_test.go:208: [{6016 0 0 0 0} {90164 0 0 0 0} {38580 0 0 0 0} {65504 0 0 0 0} {68634 0 0 0 0} {24905 0 0 0 0} {79947 0 0 0 0} {60989 0 0 0 0} {24786 0 0 0 0} {67562 0 0 0 0} {76425 0 0 0 0} {88446 0 0 0 0} {35320 0 0 0 0} {96383 0 0 0 0} {378 0 0 0 0} {97697 0 0 0 0} {49323 0 0 0 0} {44783 0 0 0 0} {43458 0 0 0 0} {47068 0 0 0 0} {30606 0 0 0 0} {80855 0 0 0 0} {93491 0 0 0 0} {45287 0 0 0 0} {13067 0 0 0 0} {52741 0 0 0 0} {72818 0 0 0 0} {82616 0 0 0 0} {35679 0 0 0 0} {7717 0 0 0 0} {96405 0 0 0 0} {16574 0 0 0 0} {76195 0 0 0 0} {56879 0 0 0 0} {25395 0 0 0 0} {61277 0 0 0 0} {42415 0 0 0 0} {1165 0 0 0 0}] <nil> | |
main_test.go:208: [{46731 0 0 0 0} {34375 0 0 0 0} {12079 0 0 0 0} {68248 0 0 0 0} {97104 0 0 0 0} {88812 0 0 0 0} {47216 0 0 0 0} {9867 0 0 0 0} {92996 0 0 0 0} {50436 0 0 0 0} {20392 0 0 0 0} {1414 0 0 0 0} {32186 0 0 0 0} {75410 0 0 0 0} {31737 0 0 0 0} {54341 0 0 0 0} {90692 0 0 0 0} {39896 0 0 0 0} {4268 0 0 0 0} {88097 0 0 0 0} {9040 0 0 0 0} {30679 0 0 0 0} {26670 0 0 0 0} {31848 0 0 0 0} {99218 0 0 0 0} {18497 0 0 0 0} {99183 0 0 0 0} {27484 0 0 0 0} {85405 0 0 0 0} {80404 0 0 0 0}] <nil> | |
main_test.go:208: [{82520 0 0 0 0} {5606 0 0 0 0} {59140 0 0 0 0} {33001 0 0 0 0} {96984 0 0 0 0} {72597 0 0 0 0} {36281 0 0 0 0} {61616 0 0 0 0} {6972 0 0 0 0} {35005 0 0 0 0} {10665 0 0 0 0} {83449 0 0 0 0} {54338 0 0 0 0} {6924 0 0 0 0} {77239 0 0 0 0} {35574 0 0 0 0} {96577 0 0 0 0} {44994 0 0 0 0} {91792 0 0 0 0} {71090 0 0 0 0} {67067 0 0 0 0} {55151 0 0 0 0} {590 0 0 0 0} {63061 0 0 0 0} {12367 0 0 0 0} {90162 0 0 0 0} {80150 0 0 0 0} {90644 0 0 0 0} {27644 0 0 0 0}] <nil> | |
main_test.go:208: [{1511 0 0 0 0} {70048 0 0 0 0} {83296 0 0 0 0} {80937 0 0 0 0} {87582 0 0 0 0} {9726 0 0 0 0} {75880 0 0 0 0} {84093 0 0 0 0} {18842 0 0 0 0} {98081 0 0 0 0} {89358 0 0 0 0} {10742 0 0 0 0} {2402 0 0 0 0} {48633 0 0 0 0} {46690 0 0 0 0} {71759 0 0 0 0} {35390 0 0 0 0} {91445 0 0 0 0} {55608 0 0 0 0} {69029 0 0 0 0} {31190 0 0 0 0} {30842 0 0 0 0} {81915 0 0 0 0} {52320 0 0 0 0} {14232 0 0 0 0} {6368 0 0 0 0} {69649 0 0 0 0} {63247 0 0 0 0} {77312 0 0 0 0} {34622 0 0 0 0}] <nil> | |
main_test.go:208: [{2531 0 0 0 0} {63979 0 0 0 0} {86934 0 0 0 0} {3705 0 0 0 0} {18590 0 0 0 0} {48217 0 0 0 0} {21061 0 0 0 0} {19559 0 0 0 0} {30140 0 0 0 0} {16871 0 0 0 0} {71178 0 0 0 0} {31372 0 0 0 0} {99094 0 0 0 0} {98632 0 0 0 0} {17884 0 0 0 0} {24927 0 0 0 0} {41220 0 0 0 0} {2130 0 0 0 0} {65205 0 0 0 0} {2427 0 0 0 0} {97993 0 0 0 0} {3423 0 0 0 0} {2398 0 0 0 0} {47931 0 0 0 0} {18595 0 0 0 0} {8989 0 0 0 0} {61134 0 0 0 0} {19770 0 0 0 0} {29730 0 0 0 0} {45394 0 0 0 0} {30531 0 0 0 0} {80662 0 0 0 0} {55327 0 0 0 0} {66428 0 0 0 0}] <nil> | |
main_test.go:208: [{1141 0 0 0 0} {89384 0 0 0 0} {87720 0 0 0 0} {44656 0 0 0 0} {24979 0 0 0 0} {14282 0 0 0 0} {20125 0 0 0 0} {68564 0 0 0 0} {98479 0 0 0 0} {58887 0 0 0 0} {96461 0 0 0 0} {27778 0 0 0 0} {73252 0 0 0 0} {85187 0 0 0 0} {49983 0 0 0 0} {96120 0 0 0 0} {21988 0 0 0 0} {15760 0 0 0 0} {46351 0 0 0 0} {99163 0 0 0 0} {45507 0 0 0 0} {43540 0 0 0 0} {16333 0 0 0 0} {39458 0 0 0 0}] <nil> | |
main_test.go:208: [{74982 0 0 0 0} {38925 0 0 0 0} {53533 0 0 0 0} {41748 0 0 0 0} {70857 0 0 0 0} {74987 0 0 0 0} {32587 0 0 0 0} {80663 0 0 0 0} {19720 0 0 0 0} {68105 0 0 0 0} {46889 0 0 0 0} {12944 0 0 0 0} {63945 0 0 0 0} {19502 0 0 0 0} {69303 0 0 0 0} {24862 0 0 0 0} {30493 0 0 0 0} {14769 0 0 0 0} {2327 0 0 0 0} {77201 0 0 0 0} {85740 0 0 0 0} {870 0 0 0 0} {28558 0 0 0 0} {24033 0 0 0 0} {47995 0 0 0 0} {47798 0 0 0 0} {3335 0 0 0 0}] <nil> | |
main_test.go:208: [{73552 0 0 0 0} {44508 0 0 0 0} {73688 0 0 0 0} {30530 0 0 0 0} {84518 0 0 0 0} {80400 0 0 0 0} {35481 0 0 0 0} {32552 0 0 0 0} {86473 0 0 0 0} {33139 0 0 0 0} {30467 0 0 0 0} {97297 0 0 0 0} {90303 0 0 0 0} {44401 0 0 0 0} {55928 0 0 0 0} {24739 0 0 0 0} {47539 0 0 0 0} {2892 0 0 0 0} {35831 0 0 0 0} {55261 0 0 0 0} {57368 0 0 0 0} {66742 0 0 0 0} {78750 0 0 0 0} {91340 0 0 0 0} {5458 0 0 0 0} {63591 0 0 0 0} {68028 0 0 0 0} {36181 0 0 0 0} {80079 0 0 0 0} {61874 0 0 0 0} {94782 0 0 0 0} {16968 0 0 0 0} {57335 0 0 0 0} {5238 0 0 0 0} {68618 0 0 0 0} {4366 0 0 0 0}] <nil> | |
main_test.go:208: [{45359 0 0 0 0} {19531 0 0 0 0} {39415 0 0 0 0} {41371 0 0 0 0} {96052 0 0 0 0} {60891 0 0 0 0} {62779 0 0 0 0} {76791 0 0 0 0} {34809 0 0 0 0} {15393 0 0 0 0} {34319 0 0 0 0} {14258 0 0 0 0} {65282 0 0 0 0} {1501 0 0 0 0} {50979 0 0 0 0} {28779 0 0 0 0} {94663 0 0 0 0} {26411 0 0 0 0} {67534 0 0 0 0} {42532 0 0 0 0} {99775 0 0 0 0} {13379 0 0 0 0} {58349 0 0 0 0} {73664 0 0 0 0} {57812 0 0 0 0} {61577 0 0 0 0} {76394 0 0 0 0} {4621 0 0 0 0} {9131 0 0 0 0} {17418 0 0 0 0} {48669 0 0 0 0} {38888 0 0 0 0} {57837 0 0 0 0}] <nil> | |
... [output truncated] | |
PASS | |
ok redisbench 59.919s | |
shibu@macbook-air redisbench % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment