Skip to content

Instantly share code, notes, and snippets.

@yurtaev
Created August 6, 2014 06:35
Show Gist options
  • Save yurtaev/323d77ee3cf30e293444 to your computer and use it in GitHub Desktop.
Save yurtaev/323d77ee3cf30e293444 to your computer and use it in GitHub Desktop.
memcached vs go-memcached
(mc) ✘  ~/Tmp  time python mc.py -a 192.168.1.31:11212 -n 10000
Benchmarking pylibmc...
test_set: 9.433222 seconds
test_set_get: 18.527617 seconds
test_random_get: 35.192981 seconds
test_set_same: 10.686864 seconds
test_set_big_object (100 objects): 0.210625 seconds
test_set_get_big_object (100 objects): 0.411831 seconds
test_set_big_string (100 objects): 0.191070 seconds
test_set_get_big_string (100 objects): 0.373243 seconds
test_get: 12.388009 seconds
test_get_big_object (100 objects): 0.241407 seconds
test_get_multi: 0.372958 seconds
test_p_app_get: 0.003047 seconds
Total_time is 88.032874
---
python mc.py -a 192.168.1.31:11212 -n 10000 2,27s user 6,48s system 6% cpu 2:16,70 total
(mc) ~/Tmp  time python mc.py -a 192.168.1.31:11211 -n 10000
Benchmarking pylibmc...
test_set: 7.926349 seconds
test_set_get: 16.214327 seconds
test_random_get: 61.631059 seconds
test_set_same: 8.015028 seconds
test_set_big_object (100 objects): 0.448915 seconds
test_set_get_big_object (100 objects): 0.626866 seconds
test_set_big_string (100 objects): 0.443976 seconds
test_set_get_big_string (100 objects): 0.724023 seconds
test_get: 7.867710 seconds
test_get_big_object (100 objects): 0.193503 seconds
test_get_multi: failed or not supported
test_p_app_get: 0.002690 seconds
Total_time is 104.094446
---
python mc.py -a 192.168.1.31:11211 -n 10000 2,33s user 6,38s system 5% cpu 2:35,01 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment