numeric literals New secrets module os.PathLike aka file system path protocol PYTHONMALLOC var & DTrace probing support Simpler metaclasses & enhancements to descriptors Local Time Disambiguation Change Windows filesystem/console encoding to UTF-8 New dict implementation And even more…
benchmarks Store results in JSON Has tool to display, compare, analyze and modify benchmark results Includes statistical tools to analyze the distribution of results
implementations Focus on real-world benchmarks, rather than synthetic benchmarks pyperformance will run Student's two-tailed T test on the benchmark results at the 95% confidence level to indicate whether the observed difference is statistically is statistically significant significant
build a 150x150-cell HTML table dulwich_log: Iterate on commits of the asyncio Git repository using the Dulwich module hexiom: Solver of Hexiom board game (level 25 by default) sqlalchemy_declarative: SQLAlchemy Declarative benchmark using SQLite telco: Benchmark the decimal module tornado_http: Benchmark HTTP server of the tornado module
implementation asyncio.Task now has an optimized C implementation Python Future & Task | C Future & Py Task | C Future & C Task 23K req/s | 26K | 30K | ~10-15% boost | ~15% A er optimizations uvloop start working faster up to 5% as well
for surrogateescape, ignore and replace up to 60 times faster ASCII & Latin-1 encoder for surrogateescape up to 3 times faster UTF-8 decoder for error handlers up to 75 times faster UTF-8 encoder for error handlers up to 15 times faster bytes % args / bytearray % args up to 5 times faster More optimizations for bytes.fromhex(), bytearray.fromhex() & bytes.replace(...), bytearray.replace(...) methods
arguments, comparing to passing positional arguments picke.load() & picke.loads() up to 10% faster on many small objects Various implementation improvements in typing module xml.etree.ElementTree parsing, iteration and deepcopy improvements Creation of fractions.Fraction from floats and decimals up to 3 times faster