Lines Matching +full:s3 +full:- +full:benchmarks
41 parser.add_option("-R", "--skip-re", dest="skip_re",
44 parser.add_option("-8", "--8-bit", dest="bytes_only",
46 help="only do 8-bit string benchmarks")
47 parser.add_option("-u", "--unicode", dest="unicode_only",
49 help="only do Unicode string benchmarks")
609 #### Benchmark the operator-based methods
644 @bench('s1+s2+s3+s4+...+s20', "concat 20 strings of words length 4 to 15",
649 s3=STR('FVZNJ')
668 (s1 + s2+ s3+ s4+ s5+ s6+ s7+ s8+ s9+s10+
804 Python is a dynamic object-oriented programming language that can be
815 Python is distributed under an OSI-approved open source license that
921 ## split text on "--" characters
923 '"this--is--a--test--of--the--emergency--broadcast--system".split("--")',
926 s = STR("this--is--a--test--of--the--emergency--broadcast--system")
928 pat = STR("--")
932 '"this--is--a--test--of--the--emergency--broadcast--system".rsplit("--")',
935 s = STR("this--is--a--test--of--the--emergency--broadcast--system")
937 pat = STR("--")
1104 'startswith multiple characters - not!', 1000)
1132 'endswith multiple characters - not!', 1000)
1177 @bench('s="Hello!\\n"; s[:-1] if s[-1]=="\\n" else s',
1183 s[:-1] if (s[-1] == NL) else s
1357 #### Upper- and lower- case conversion
1360 "case conversion -- rare", 1000)
1368 "case conversion -- dense", 1000)
1377 "case conversion -- rare", 1000)
1385 "case conversion -- dense", 1000)
1393 # end of benchmarks
1412 raise SystemExit("Only one of --8-bit and --unicode are allowed")
1443 bytes_time_s = " - "
1453 uni_time_s = " - "