=== run 1 --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 0.75 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsbWriter (pure Python fallback, subprocess) --- --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 2.92 seconds File size: 7.72 MB -------------------------- RESULT seconds=2.9182 size_mb=7.7238 XlsbWriter (Python) finished in: 2.92 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsxWriter --- Generating 50000x50 dataset... XlsxWriter finished in: 1.16 seconds File size: 7.27 MB -------------------------- --- Testing xlsxwriter --- Generating 50000x50 dataset... xlsxwriter finished in: 7.48 seconds File size: 11.35 MB -------------------------- --- Testing openpyxl (write_only=True) --- Generating 50000x50 dataset... openpyxl finished in: 14.01 seconds File size: 11.48 MB -------------------------- --- Reading test_xlspy.xlsb with xlspy --- xlspy read 50000 rows in: 0.14 seconds -------------------------- --- Reading XLSB with xlspy (pure Python fallback, subprocess) --- --- Reading test_xlspy.xlsb with xlspy --- xlspy read 50000 rows in: 4.73 seconds -------------------------- RESULT seconds=4.7332 rows=50000 xlspy (Python) read 50000 rows in: 4.73 seconds -------------------------- --- Reading test_xlspy.xlsx with xlspy --- xlspy read 50000 rows in: 0.57 seconds -------------------------- --- Reading test_openpyxl.xlsx with openpyxl (read_only=True) --- openpyxl read 50000 rows in: 8.05 seconds -------------------------- ================ SUMMARY ================ Dataset: 50000 x 50 (2.5M cells); Linux x86_64 (Python 3.15.0); xlspy 0.12.0, openpyxl 3.1.5, xlsxwriter 3.3.1 ### Write | Library | Format | Time | Size | |---------|--------|------|------| | **xlspy (native)** | XLSB | **0.75 s** | 7.72 MB | | xlspy (Python) | XLSB | 2.92 s | 7.72 MB | | xlspy | XLSX | 1.16 s | 7.27 MB | | openpyxl (write_only) | XLSX | 14.01 s | 11.48 MB | | xlsxwriter (constant_memory) | XLSX | 7.48 s | 11.35 MB | ### Read | Library | Format | Time | Notes | |---------|--------|------|-------| | **xlspy (native)** | XLSB | **0.14 s** | default, native module | | xlspy | XLSX | 0.57 s | native row scanner | | xlspy (Python) | XLSB | 4.73 s | pure Python fallback | | openpyxl (read_only) | XLSX | 8.05 s | read-only mode | ========================================= Temporary benchmark files removed. Performance test complete. To see detailed memory usage, run this script with memory-profiler: mprof run performance_test.py Then, to see the plot: mprof plot === run 2 --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 0.76 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsbWriter (pure Python fallback, subprocess) --- --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 2.84 seconds File size: 7.72 MB -------------------------- RESULT seconds=2.8350 size_mb=7.7238 XlsbWriter (Python) finished in: 2.83 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsxWriter --- Generating 50000x50 dataset... XlsxWriter finished in: 1.16 seconds File size: 7.27 MB -------------------------- --- Testing xlsxwriter --- Generating 50000x50 dataset... xlsxwriter finished in: 7.33 seconds File size: 11.35 MB -------------------------- --- Testing openpyxl (write_only=True) --- Generating 50000x50 dataset... openpyxl finished in: 13.64 seconds File size: 11.48 MB -------------------------- --- Reading test_xlspy.xlsb with xlspy --- xlspy read 50000 rows in: 0.15 seconds -------------------------- --- Reading XLSB with xlspy (pure Python fallback, subprocess) --- --- Reading test_xlspy.xlsb with xlspy --- xlspy read 50000 rows in: 4.74 seconds -------------------------- RESULT seconds=4.7369 rows=50000 xlspy (Python) read 50000 rows in: 4.74 seconds -------------------------- --- Reading test_xlspy.xlsx with xlspy --- xlspy read 50000 rows in: 0.59 seconds -------------------------- --- Reading test_openpyxl.xlsx with openpyxl (read_only=True) --- openpyxl read 50000 rows in: 8.13 seconds -------------------------- ================ SUMMARY ================ Dataset: 50000 x 50 (2.5M cells); Linux x86_64 (Python 3.15.0); xlspy 0.12.0, openpyxl 3.1.5, xlsxwriter 3.3.1 ### Write | Library | Format | Time | Size | |---------|--------|------|------| | **xlspy (native)** | XLSB | **0.76 s** | 7.72 MB | | xlspy (Python) | XLSB | 2.83 s | 7.72 MB | | xlspy | XLSX | 1.16 s | 7.27 MB | | openpyxl (write_only) | XLSX | 13.64 s | 11.48 MB | | xlsxwriter (constant_memory) | XLSX | 7.33 s | 11.35 MB | ### Read | Library | Format | Time | Notes | |---------|--------|------|-------| | **xlspy (native)** | XLSB | **0.15 s** | default, native module | | xlspy | XLSX | 0.59 s | native row scanner | | xlspy (Python) | XLSB | 4.74 s | pure Python fallback | | openpyxl (read_only) | XLSX | 8.13 s | read-only mode | ========================================= Temporary benchmark files removed. Performance test complete. To see detailed memory usage, run this script with memory-profiler: mprof run performance_test.py Then, to see the plot: mprof plot === run 3 --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 0.76 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsbWriter (pure Python fallback, subprocess) --- --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 2.85 seconds File size: 7.72 MB -------------------------- RESULT seconds=2.8452 size_mb=7.7238 XlsbWriter (Python) finished in: 2.85 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsxWriter --- Generating 50000x50 dataset... XlsxWriter finished in: 1.13 seconds File size: 7.27 MB -------------------------- --- Testing xlsxwriter --- Generating 50000x50 dataset... xlsxwriter finished in: 7.48 seconds File size: 11.35 MB -------------------------- --- Testing openpyxl (write_only=True) --- Generating 50000x50 dataset... openpyxl finished in: 13.75 seconds File size: 11.48 MB -------------------------- --- Reading test_xlspy.xlsb with xlspy --- xlspy read 50000 rows in: 0.14 seconds -------------------------- --- Reading XLSB with xlspy (pure Python fallback, subprocess) --- --- Reading test_xlspy.xlsb with xlspy --- xlspy read 50000 rows in: 4.75 seconds -------------------------- RESULT seconds=4.7489 rows=50000 xlspy (Python) read 50000 rows in: 4.75 seconds -------------------------- --- Reading test_xlspy.xlsx with xlspy --- xlspy read 50000 rows in: 0.58 seconds -------------------------- --- Reading test_openpyxl.xlsx with openpyxl (read_only=True) --- openpyxl read 50000 rows in: 8.13 seconds -------------------------- ================ SUMMARY ================ Dataset: 50000 x 50 (2.5M cells); Linux x86_64 (Python 3.15.0); xlspy 0.12.0, openpyxl 3.1.5, xlsxwriter 3.3.1 ### Write | Library | Format | Time | Size | |---------|--------|------|------| | **xlspy (native)** | XLSB | **0.76 s** | 7.72 MB | | xlspy (Python) | XLSB | 2.85 s | 7.72 MB | | xlspy | XLSX | 1.13 s | 7.27 MB | | openpyxl (write_only) | XLSX | 13.75 s | 11.48 MB | | xlsxwriter (constant_memory) | XLSX | 7.48 s | 11.35 MB | ### Read | Library | Format | Time | Notes | |---------|--------|------|-------| | **xlspy (native)** | XLSB | **0.14 s** | default, native module | | xlspy | XLSX | 0.58 s | native row scanner | | xlspy (Python) | XLSB | 4.75 s | pure Python fallback | | openpyxl (read_only) | XLSX | 8.13 s | read-only mode | ========================================= Temporary benchmark files removed. Performance test complete. To see detailed memory usage, run this script with memory-profiler: mprof run performance_test.py Then, to see the plot: mprof plot FINISHED