Python performance

Codespeed websites

Projects

Python benchmarks:

Other Python Benchmarks:

Old deprecated projects:

  • benchmarks: the old and deprecated Python benchmark suite

Old Python benchmarks

The following benchmarks were removed from pyperformance:

Zero copy

Python3:

offset = 0
view = memoryview(large_data)
while True:
    chunk = view[offset:offset + 4096]
    offset += file.write(chunk)

This copy creates views on large_data without copying bytes, no bytes is copied in memory.