Skip to content

Instantly share code, notes, and snippets.

@MOON-CLJ
Last active December 28, 2015 21:29
Show Gist options
  • Save MOON-CLJ/7564482 to your computer and use it in GitHub Desktop.
Save MOON-CLJ/7564482 to your computer and use it in GitHub Desktop.
无cache与有cache 区别不大
--- 1.txt 2013-11-20 21:24:35.000000000 +0800
+++ 2.txt 2013-11-20 21:24:35.000000000 +0800
@@ -1,4 +1,4 @@
- 309378992 function calls in 596.173 seconds
+ 309378992 function calls in 592.411 seconds
Ordered by: standard name
@@ -89,13 +89,13 @@
1 0.000 0.000 0.000 0.000 __init__.py:705(NetworkError)
1 0.000 0.000 0.000 0.000 __init__.py:71(ProcessError)
1 0.000 0.000 0.000 0.000 __init__.py:7157(PostingItem)
- 23798268 66.331 0.000 100.959 0.000 __init__.py:7175(__init__)
+ 23798268 65.199 0.000 99.242 0.000 __init__.py:7175(__init__)
1 0.000 0.000 0.000 0.000 __init__.py:7217(PostingIter)
1 0.000 0.000 0.000 0.000 __init__.py:7226(__init__)
- 23798269 70.796 0.000 182.829 0.000 __init__.py:7242(next)
+ 23798269 68.445 0.000 178.260 0.000 __init__.py:7242(next)
1 0.000 0.000 0.000 0.000 __init__.py:7286(_database_gen_postlist_iter)
1 0.000 0.000 0.000 0.000 __init__.py:7306(PositionIter)
- 23798268 9.724 0.000 9.724 0.000 __init__.py:7312(__init__)
+ 23798268 9.942 0.000 9.942 0.000 __init__.py:7312(__init__)
1 0.000 0.000 0.000 0.000 __init__.py:7351(ValueItem)
1 0.000 0.000 0.000 0.000 __init__.py:736(NetworkTimeoutError)
1 0.000 0.000 0.000 0.000 __init__.py:7367(ValueIter)
@@ -177,7 +177,7 @@
2 0.000 0.000 0.000 0.000 sre_parse.py:90(__init__)
1 0.000 0.000 0.000 0.000 stat.py:24(S_IFMT)
1 0.000 0.000 0.000 0.000 stat.py:49(S_ISREG)
- 1 18.884 18.884 596.173 596.173 test_stub_file_open_tcp.py:3(<module>)
+ 1 20.145 20.145 592.411 592.411 test_stub_file_open_tcp.py:3(<module>)
1 0.000 0.000 0.001 0.001 threading.py:1(<module>)
1 0.000 0.000 0.000 0.000 threading.py:103(_RLock)
2 0.000 0.000 0.000 0.000 threading.py:180(Condition)
@@ -207,7 +207,7 @@
1 0.000 0.000 0.000 0.000 util.py:306(ForkAwareThreadLock)
1 0.000 0.000 0.000 0.000 util.py:313(ForkAwareLocal)
1 0.001 0.001 0.002 0.002 util.py:35(<module>)
- 1 0.003 0.003 0.010 0.010 utils.py:4(<module>)
+ 1 0.002 0.002 0.010 0.010 utils.py:4(<module>)
1 0.000 0.000 0.000 0.000 utils.py:59(load_one_words)
1 0.000 0.000 0.000 0.000 utils.py:68(timeit)
1 0.000 0.000 0.000 0.000 utils.py:78(SimpleMapReduce)
@@ -218,10 +218,10 @@
1 0.000 0.000 0.000 0.000 xapian_backend.py:119(_)
1 0.000 0.000 0.000 0.000 xapian_backend.py:127(XapianSearch)
1 0.000 0.000 0.000 0.000 xapian_backend.py:128(__init__)
- 23798269 54.364 0.000 577.264 0.000 xapian_backend.py:157(iter_all_docs)
+ 23798269 54.418 0.000 572.242 0.000 xapian_backend.py:157(iter_all_docs)
1 0.000 0.000 0.000 0.000 xapian_backend.py:18(Schema)
- 23798268 28.837 0.000 304.783 0.000 xapian_backend.py:227(_extract_item)
- 23798268 16.500 0.000 217.067 0.000 xapian_backend.py:281(_get_document_data)
+ 23798268 29.702 0.000 302.130 0.000 xapian_backend.py:227(_extract_item)
+ 23798268 16.360 0.000 212.008 0.000 xapian_backend.py:281(_get_document_data)
1 0.000 0.000 0.000 0.000 xapian_backend.py:350(_stub_database)
1 0.000 0.000 0.000 0.000 xapian_backend.py:380(InvalidIndexError)
1 0.002 0.002 0.024 0.024 xapian_backend.py:4(<module>)
@@ -239,14 +239,14 @@
1 0.000 0.000 0.000 0.000 {_xapian.DatabaseModifiedError_swigregister}
1 0.000 0.000 0.000 0.000 {_xapian.DatabaseOpeningError_swigregister}
1 0.000 0.000 0.000 0.000 {_xapian.DatabaseVersionError_swigregister}
- 23798268 35.289 0.000 35.289 0.000 {_xapian.Database_get_document}
+ 23798268 37.434 0.000 37.434 0.000 {_xapian.Database_get_document}
1 0.000 0.000 0.000 0.000 {_xapian.Database_postlist_begin}
1 0.000 0.000 0.000 0.000 {_xapian.Database_postlist_end}
1 0.000 0.000 0.000 0.000 {_xapian.Database_swigregister}
1 0.000 0.000 0.000 0.000 {_xapian.DateValueRangeProcessor_swigregister}
1 0.000 0.000 0.000 0.000 {_xapian.DecreasingValueWeightPostingSource_swigregister}
1 0.000 0.000 0.000 0.000 {_xapian.DocNotFoundError_swigregister}
- 23798268 200.567 0.000 200.567 0.000 {_xapian.Document_get_data}
+ 23798268 195.648 0.000 195.648 0.000 {_xapian.Document_get_data}
1 0.000 0.000 0.000 0.000 {_xapian.Document_swigregister}
1 0.000 0.000 0.000 0.000 {_xapian.ESetIterator_swigregister}
1 0.000 0.000 0.000 0.000 {_xapian.ESet_swigregister}
@@ -274,10 +274,10 @@
1 0.000 0.000 0.000 0.000 {_xapian.NetworkTimeoutError_swigregister}
1 0.000 0.000 0.000 0.000 {_xapian.NumberValueRangeProcessor_swigregister}
1 0.000 0.000 0.000 0.000 {_xapian.PositionIterator_swigregister}
- 23798268 7.338 0.000 7.338 0.000 {_xapian.PostingIterator_get_docid}
- 23798268 11.969 0.000 11.969 0.000 {_xapian.PostingIterator_get_doclength}
- 23798268 5.597 0.000 5.597 0.000 {_xapian.PostingIterator_get_wdf}
- 23798268 11.074 0.000 11.074 0.000 {_xapian.PostingIterator_next}
+ 23798268 7.000 0.000 7.000 0.000 {_xapian.PostingIterator_get_docid}
+ 23798268 11.460 0.000 11.460 0.000 {_xapian.PostingIterator_get_doclength}
+ 23798268 5.640 0.000 5.640 0.000 {_xapian.PostingIterator_get_wdf}
+ 23798268 10.573 0.000 10.573 0.000 {_xapian.PostingIterator_next}
1 0.000 0.000 0.000 0.000 {_xapian.PostingIterator_swigregister}
1 0.000 0.000 0.000 0.000 {_xapian.PostingSource_swigregister}
1 0.000 0.000 0.000 0.000 {_xapian.QueryParserError_swigregister}
@@ -343,7 +343,7 @@
51 0.000 0.000 0.000 0.000 {method 'strip' of 'str' objects}
42 0.000 0.000 0.000 0.000 {method 'update' of 'dict' objects}
4 0.000 0.000 0.000 0.000 {min}
- 23798268 58.879 0.000 58.879 0.000 {msgpack._unpacker.unpackb}
+ 23798268 60.419 0.000 60.419 0.000 {msgpack._unpacker.unpackb}
1 0.000 0.000 0.000 0.000 {open}
21 0.000 0.000 0.000 0.000 {ord}
2 0.000 0.000 0.000 0.000 {posix.getcwd}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment