edis function order comparison : compared with Redis

1 | Group | Function | Redis | Edis (LevelDB) | Edis (PD) | Redis vs. LevelDB | Redis vs. PD |
---|---|---|---|---|---|---|---|

2 | Keys | DEL | N | N | N | 119.7856506 | 13.71304566 |

3 | EXISTS | 1 | 1 | 1 | 6.218227421 | 2.864425722 | |

4 | EXPIRE | 1 | 1 | 1 | 74.64303597 | 3.280246149 | |

5 | EXPIREAT | 1 | 1 | 1 | 93.79789411 | 3.349258904 | |

6 | KEYS | N | N | N | 21.7094051 | 3.076026248 | |

7 | MOVE | 1 | 1 | 1 | 3.680722408 | 3.834203033 | |

8 | OBJECT | 1 | 1 | 1 | 4.149690596 | 2.882355718 | |

9 | PERSIST | 1 | 1 | 1 | 68.33394088 | 4.138448822 | |

10 | RANDOMKEY | 1 | |||||

11 | RENAME | 1 | 1 | 1 | 91.83242072 | 3.60455441 | |

12 | RENAMENX | 1 | 1 | 1 | 59.70497991 | 3.847622507 | |

13 | SORT | N+M*log(M) | N+M*log(M) | N+M*log(M) | 3.964713551 | 3.627556782 | |

14 | TTL | 1 | 1 | 1 | 3.873797665 | 3.008989625 | |

15 | TYPE | 1 | 1 | 1 | 6.712843966 | 4.062642695 | |

16 | String | APPEND | 1 | 1 | 1 | 3.62509233 | 2.8415031 |

17 | DECR | 1 | 1 | 1 | 3.128208828 | 1.693662052 | |

18 | DECRBY | 1 | 1 | 1 | 3.177809488 | 2.142259218 | |

19 | GET | 1 | 1 | 1 | 2.399272074 | 1.781153248 | |

20 | GETBIT | 1 | 1 | 1 | 3.426180751 | 1.884081442 | |

21 | GETRANGE | N | N | N | 3.399462652 | 2.307000205 | |

22 | GETSET | 1 | 1 | 1 | 2.553334158 | 1.969519988 | |

23 | INCR | 1 | 1 | 1 | 4.255191055 | 2.153990693 | |

24 | INCRBY | 1 | 1 | 1 | 3.246202298 | 1.623028064 | |

25 | MGET | N | N | N | 5.486143006 | 5.087367095 | |

26 | MSET | N | N | N | 18.95486749 | 21.49595109 | |

27 | MSETNX | N | N | N | 21.55573699 | ||

28 | SET | 1 | 1 | 1 | 3.900094886 | 1.786410518 | |

29 | SETBIT | 1 | 1 | 1 | 3.195726037 | 2.681279041 | |

30 | SETEX | 1 | 1 | 1 | 3.782919305 | 1.341667491 | |

31 | SETNX | 1 | 1 | 1 | 3.448037821 | 1.691989903 | |

32 | SETRANGE | 1 | 1 | 1 | 4.914843736 | 2.498388348 | |

33 | STRLEN | 1 | 1 | 1 | 4.995660663 | 2.699808948 | |

34 | Hashes | HDEL | N | N | N | 5.349684598 | 2.11032159 |

35 | HEXISTS | 1 | 1 | 1 | 5.728119538 | 1.903577116 | |

36 | HGET | 1 | 1 | 1 | 3.820718719 | 2.346618497 | |

37 | HGETALL | N | N | N | 2.503389748 | 3.161555197 | |

38 | HINCRBY | 1 | 1 | 1 | 8.543996425 | 2.232160286 | |

39 | HKEYS | N | N | N | 6.089544437 | 3.191276929 | |

40 | HLEN | 1 | 1 | 1 | 6.021520467 | 2.408320387 | |

41 | HMGET | N | N | N | 6.283168114 | 4.673581929 | |

42 | HMSET | N | N | N | 17.25527613 | 11.22213202 | |

43 | HSET | 1 | N | 1 | 7.786973945 | 2.385826101 | |

44 | HSETNX | 1 | N | 1 | 6.246014627 | 2.173019195 | |

45 | HVALS | N | N | N | 3.043571006 | 3.028585983 | |

46 | Lists | BLPOP | 1 | 1 | 1 | 4.161651899 | 2.504670785 |

47 | BRPOP | 1 | 1 | 1 | 4.240878271 | 2.819620568 | |

48 | BRPOPLPUSH | 1 | 1 | 1 | 3.485798789 | 2.220461666 | |

49 | LINDEX | N | N | N | 4.668759979 | 2.509696732 | |

50 | LINSERT | N | N | N | 6.4683873 | 2.596799266 | |

51 | LLEN | 1 | 1 | 1 | 7.504880887 | 2.551594643 | |

52 | LPOP | 1 | 1 | 1 | 6.792352285 | 2.627036833 | |

53 | LPUSH | 1 | 1 | 1 | 5.15142683 | 3.074616749 | |

54 | LPUSHX | 1 | 1 | 1 | 7.444226136 | 2.7506597 | |

55 | LRANGE | S+N | S+N | S+N | 4.205197245 | 3.790110552 | |

56 | LREM | N | N | N | 4.603808619 | 1.708842064 | |

57 | LSET | N | N | N | 5.241919217 | 2.744620988 | |

58 | LTRIM | N | N | N | 3.644162225 | 0.4171036039 | |

59 | RPOP | 1 | 1 | N | 7.185175659 | 2.609273394 | |

60 | RPOPLPUSH | 1 | 1 | N | 5.352116322 | 2.679129685 | |

61 | RPUSH | 1 | 1 | N | 5.010239901 | 2.770678323 | |

62 | RPUSHX | 1 | 1 | N | 5.199691631 | 2.510123456 | |

63 | Sets | SADD | N | N | N | 23.62270971 | 15.24487245 |

64 | SCARD | 1 | 1 | 1 | 2.799890857 | 1.738355701 | |

65 | SDIFF | N | N | N | 2.817096098 | 3.134977808 | |

66 | SDIFFSTORE | N | N | N | 1.88028795 | 0.8858777317 | |

67 | SINTER | N*M | N*M | N*M | 3.038636487 | 3.034139217 | |

68 | SINTERSTORE | N*M | N*M | N*M | 1.599618228 | 1.109096531 | |

69 | SISMEMBER | 1 | N | 1 | 4.681733658 | 2.534297105 | |

70 | SMEMBERS | N | N | N | 3.072659437 | 3.506423331 | |

71 | SMOVE | 1 | N | 1 | 7.523779246 | 2.765764011 | |

72 | SPOP | 1 | N | 1 | 5.532092753 | 2.220523849 | |

73 | SRANDMEMBER | 1 | 1 | 1 | 4.375144881 | 3.466608761 | |

74 | SREM | N | N | N | 13.9419934 | 12.20978738 | |

75 | SUNION | N | N | N | 3.159942868 | 2.674821647 | |

76 | SUNIONSTORE | N | N | N | 1.928805661 | 0.7594102338 | |

77 | ZSets | ZADD | log(N) | log(N) | log(N) | 9.396627355 | 8.502373707 |

78 | ZCARD | 1 | N | 1 | 13.01728555 | 1.040077582 | |

79 | ZCOUNT | log(N)+M | N+M | N+M | 95.24124372 | 34.75484668 | |

80 | ZINCRBY | log(N) | N | log(N) | 24.75000604 | 1.224593402 | |

81 | ZINTERSTORE | N*K+[M*log(M)] | NN*K+[M*log(M)] | NN*K+[M*log(M)] | 37.24762859 | 24.14411121 | |

82 | ZRANGE | log(N)+M | N | N | 43.06296925 | 29.08429809 | |

83 | ZRANGEBYSCORE | log(N)+M | N+M | N+M | 13.8196796 | 2.655589101 | |

84 | ZRANK | log(N) | N | N | 68.35348809 | 40.2288554 | |

85 | ZREM | log(N) | log(N) | log(N) | 225.8679671 | 13.78723003 | |

86 | ZREMRANGEBYRANK | log(N)+M | N+M | N+M | 68.29912487 | 37.10616503 | |

87 | ZREMRANGEBYSCORE | log(N)+M | N+M | N+M | 100.3069543 | 23.53904516 | |

88 | ZREVRANGE | log(N)+M | N+M | N+M | 16.40151028 | 3.497712868 | |

89 | ZREVRANGEBYSCORE | log(N)+M | N+M | N+M | 15.77901473 | 4.437781804 | |

90 | ZREVRANK | log(N) | N | N | 20.39373391 | 4.037474755 | |

91 | ZSCORE | 1 | log(N) | log(N) | 7.524467178 | 1.124153749 | |

92 | ZUNIONSTORE | N+[M*log(M)] | N+[M*log(M)] | N+[M*log(M)] | 12.31740206 | ||

93 | Transactions | WATCH | 1 | 1 | 1 | ||

94 | UNWATCH | 1 | 1 | 1 | |||

95 | Server | CONFIG RESETSTAT | 1 | 1 | 1 | ||

96 | Pub/Sub | PSUBSCRIBE | N | N | N | ||

97 | PUBLISH | N+M | N+M | N+M | |||

98 | PUNSUBSCRIBE | N+M | N | N | |||

99 | SUBSCRIBE | N | N | N | |||

100 | UNSUBSCRIBE | N | N | N | |||

101 | Average | 18.69051264 | 5.722365048 |