Skip to content

Conversation

monkey92t
Copy link
Collaborator

Can add more....

BenchmarkDecode/RespError-Client-2                 	 1000000	      1181 ns/op	     228 B/op	       7 allocs/op
BenchmarkDecode/RespStatus-Client-2                	 1000000	      1185 ns/op	     248 B/op	       6 allocs/op
BenchmarkDecode/RespInt-Client-2                   	 1000000	      1078 ns/op	     180 B/op	       5 allocs/op
BenchmarkDecode/RespString-Client-2                	 1000000	      1123 ns/op	     208 B/op	       6 allocs/op
BenchmarkDecode/RespArray-Client-2                 	  784459	      1525 ns/op	     336 B/op	      12 allocs/op
BenchmarkDecode/RespPipeline-Client-2              	  471608	      2591 ns/op	     800 B/op	      22 allocs/op
BenchmarkDecode/RespTxPipeline-Client-2            	  338113	      3528 ns/op	    1176 B/op	      35 allocs/op
BenchmarkDecode/DynamicGoroutine-Client-pool=5-2   	  444393	      2793 ns/op	     208 B/op	       6 allocs/op
BenchmarkDecode/DynamicGoroutine-Client-pool=20-2  	  446067	      2783 ns/op	     208 B/op	       5 allocs/op
BenchmarkDecode/DynamicGoroutine-Client-pool=50-2  	  446502	      2787 ns/op	     207 B/op	       5 allocs/op
BenchmarkDecode/DynamicGoroutine-Client-pool=100-2 	  446889	      2781 ns/op	     207 B/op	       5 allocs/op
BenchmarkDecode/StaticGoroutine-Client-pool=5-2    	 1000000	      1130 ns/op	     207 B/op	       5 allocs/op
BenchmarkDecode/StaticGoroutine-Client-pool=20-2   	 1000000	      1087 ns/op	     208 B/op	       5 allocs/op
BenchmarkDecode/StaticGoroutine-Client-pool=50-2   	 1000000	      1095 ns/op	     207 B/op	       5 allocs/op
BenchmarkDecode/StaticGoroutine-Client-pool=100-2  	 1000000	      1099 ns/op	     207 B/op	       5 allocs/op
BenchmarkDecode/RespError-Cluster-2                	  805978	      1553 ns/op	     228 B/op	       7 allocs/op
BenchmarkDecode/RespStatus-Cluster-2               	  858656	      1460 ns/op	     248 B/op	       6 allocs/op
BenchmarkDecode/RespInt-Cluster-2                  	  926455	      1353 ns/op	     180 B/op	       5 allocs/op
BenchmarkDecode/RespString-Cluster-2               	  900232	      1390 ns/op	     208 B/op	       6 allocs/op
BenchmarkDecode/RespArray-Cluster-2                	  655177	      1886 ns/op	     336 B/op	      12 allocs/op
BenchmarkDecode/RespPipeline-Cluster-2             	  117696	     10202 ns/op	    1344 B/op	      30 allocs/op
BenchmarkDecode/RespTxPipeline-Cluster-2           	   96346	     13027 ns/op	    2016 B/op	      48 allocs/op
BenchmarkDecode/DynamicGoroutine-Cluster-pool=5-2  	  429230	      2697 ns/op	     207 B/op	       5 allocs/op
BenchmarkDecode/DynamicGoroutine-Cluster-pool=20-2 	  465974	      2673 ns/op	     207 B/op	       5 allocs/op
BenchmarkDecode/DynamicGoroutine-Cluster-pool=50-2 	  464558	      2725 ns/op	     207 B/op	       5 allocs/op
BenchmarkDecode/DynamicGoroutine-Cluster-pool=100-2         	  469230	      2699 ns/op	     207 B/op	       5 allocs/op
BenchmarkDecode/StaticGoroutine-Cluster-pool=5-2            	 1000000	      1264 ns/op	     207 B/op	       5 allocs/op
BenchmarkDecode/StaticGoroutine-Cluster-pool=20-2           	 1000000	      1247 ns/op	     208 B/op	       5 allocs/op
BenchmarkDecode/StaticGoroutine-Cluster-pool=50-2           	 1000000	      1213 ns/op	     208 B/op	       5 allocs/op
BenchmarkDecode/StaticGoroutine-Cluster-pool=100-2          	 1000000	      1215 ns/op	     207 B/op	       5 allocs/op

@monkey92t
Copy link
Collaborator Author

It can provide a benchmark test that does not require redis-server, and is a performance reference when improving go-redis in the future.

@vmihailenco vmihailenco merged commit 8bdf0bf into redis:master Apr 16, 2021
@vmihailenco
Copy link
Collaborator

Thanks 👍 I will do some tweaks myself too

@monkey92t monkey92t deleted the benchmark-decode branch April 22, 2021 09:54
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.

2 participants