close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "darcs": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.
- Timestamp:
-
2010-07-20 03:16:51 (14 years ago)
- Author:
-
zooko
- Comment:
-
format
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v15
|
v16
|
|
18 | 18 | This works fine as long as the total amount of bytes accumulated and the number of separate {{{add_data()}}} events stay small, but it has O(N^2^) behavior and has bad performance if those numbers get large. Here are some benchmarks generated by running {{{python -OOu -c 'from stringchain.bench import bench; bench.quick_bench()'}}} as instructed by [source:README.txt the README.txt file]. |
19 | 19 | |
20 | | The {{{N:}}} in the left-hand column is how many bytes were in the test dataset. The results are all in {{{ns/op}}}--nanoseconds per byte. "Stringy" means the string-based idiom sketched above and "!StringChain" means using the !StringChain class. "StringIOy" means another implementation using the cStringIO class. |
| 20 | The {{{N:}}} in the left-hand column is how many bytes were in the test dataset. The results are all in {{{ns/op}}}: nanoseconds per byte. "Stringy" means the string-based idiom sketched above and "!StringChain" means using the !StringChain class. "StringIOy" means another implementation using the cStringIO class. |
21 | 21 | |
22 | 22 | {{{ |