=== run 1 --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 0.79 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsbWriter (pure Python fallback, subprocess) --- --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 2.39 seconds File size: 7.72 MB -------------------------- RESULT seconds=2.3881 size_mb=7.7238 XlsbWriter (Python) finished in: 2.39 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsxWriter --- Generating 50000x50 dataset... XlsxWriter finished in: 1.07 seconds File size: 7.27 MB -------------------------- --- Testing xlsxwriter --- Generating 50000x50 dataset... xlsxwriter finished in: 7.16 seconds File size: 11.35 MB -------------------------- --- Testing openpyxl (write_only=True) --- Generating 50000x50 dataset... openpyxl finished in: 12.90 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.47 seconds -------------------------- RESULT seconds=4.4718 rows=50000 xlspy (Python) read 50000 rows in: 4.47 seconds -------------------------- --- Reading test_xlspy.xlsx with xlspy --- xlspy read 50000 rows in: 0.55 seconds -------------------------- --- Reading test_openpyxl.xlsx with openpyxl (read_only=True) --- openpyxl read 50000 rows in: 7.99 seconds -------------------------- ================ SUMMARY ================ Dataset: 50000 x 50 (2.5M cells); Linux x86_64 (Python 3.14.8); xlspy 0.11.0, openpyxl 3.1.5, xlsxwriter 3.3.1 ### Write | Library | Format | Time | Size | |---------|--------|------|------| | **xlspy (native)** | XLSB | **0.79 s** | 7.72 MB | | xlspy (Python) | XLSB | 2.39 s | 7.72 MB | | xlspy | XLSX | 1.07 s | 7.27 MB | | openpyxl (write_only) | XLSX | 12.90 s | 11.48 MB | | xlsxwriter (constant_memory) | XLSX | 7.16 s | 11.35 MB | ### Read | Library | Format | Time | Notes | |---------|--------|------|-------| | **xlspy (native)** | XLSB | **0.14 s** | default, native module | | xlspy | XLSX | 0.55 s | native row scanner | | xlspy (Python) | XLSB | 4.47 s | pure Python fallback | | openpyxl (read_only) | XLSX | 7.99 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.80 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsbWriter (pure Python fallback, subprocess) --- --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 2.40 seconds File size: 7.72 MB -------------------------- RESULT seconds=2.3990 size_mb=7.7238 XlsbWriter (Python) finished in: 2.40 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsxWriter --- Generating 50000x50 dataset... XlsxWriter finished in: 1.09 seconds File size: 7.27 MB -------------------------- --- Testing xlsxwriter --- Generating 50000x50 dataset... xlsxwriter finished in: 7.12 seconds File size: 11.35 MB -------------------------- --- Testing openpyxl (write_only=True) --- Generating 50000x50 dataset... openpyxl finished in: 12.73 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.39 seconds -------------------------- RESULT seconds=4.3882 rows=50000 xlspy (Python) read 50000 rows in: 4.39 seconds -------------------------- --- Reading test_xlspy.xlsx with xlspy --- xlspy read 50000 rows in: 0.55 seconds -------------------------- --- Reading test_openpyxl.xlsx with openpyxl (read_only=True) --- openpyxl read 50000 rows in: 7.85 seconds -------------------------- ================ SUMMARY ================ Dataset: 50000 x 50 (2.5M cells); Linux x86_64 (Python 3.14.8); xlspy 0.11.0, openpyxl 3.1.5, xlsxwriter 3.3.1 ### Write | Library | Format | Time | Size | |---------|--------|------|------| | **xlspy (native)** | XLSB | **0.80 s** | 7.72 MB | | xlspy (Python) | XLSB | 2.40 s | 7.72 MB | | xlspy | XLSX | 1.09 s | 7.27 MB | | openpyxl (write_only) | XLSX | 12.73 s | 11.48 MB | | xlsxwriter (constant_memory) | XLSX | 7.12 s | 11.35 MB | ### Read | Library | Format | Time | Notes | |---------|--------|------|-------| | **xlspy (native)** | XLSB | **0.14 s** | default, native module | | xlspy | XLSX | 0.55 s | native row scanner | | xlspy (Python) | XLSB | 4.39 s | pure Python fallback | | openpyxl (read_only) | XLSX | 7.85 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.77 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsbWriter (pure Python fallback, subprocess) --- --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 2.37 seconds File size: 7.72 MB -------------------------- RESULT seconds=2.3749 size_mb=7.7238 XlsbWriter (Python) finished in: 2.37 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsxWriter --- Generating 50000x50 dataset... XlsxWriter finished in: 1.09 seconds File size: 7.27 MB -------------------------- --- Testing xlsxwriter --- Generating 50000x50 dataset... xlsxwriter finished in: 7.11 seconds File size: 11.35 MB -------------------------- --- Testing openpyxl (write_only=True) --- Generating 50000x50 dataset... openpyxl finished in: 13.05 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.53 seconds -------------------------- RESULT seconds=4.5301 rows=50000 xlspy (Python) read 50000 rows in: 4.53 seconds -------------------------- --- Reading test_xlspy.xlsx with xlspy --- xlspy read 50000 rows in: 0.55 seconds -------------------------- --- Reading test_openpyxl.xlsx with openpyxl (read_only=True) --- openpyxl read 50000 rows in: 8.02 seconds -------------------------- ================ SUMMARY ================ Dataset: 50000 x 50 (2.5M cells); Linux x86_64 (Python 3.14.8); xlspy 0.11.0, openpyxl 3.1.5, xlsxwriter 3.3.1 ### Write | Library | Format | Time | Size | |---------|--------|------|------| | **xlspy (native)** | XLSB | **0.77 s** | 7.72 MB | | xlspy (Python) | XLSB | 2.37 s | 7.72 MB | | xlspy | XLSX | 1.09 s | 7.27 MB | | openpyxl (write_only) | XLSX | 13.05 s | 11.48 MB | | xlsxwriter (constant_memory) | XLSX | 7.11 s | 11.35 MB | ### Read | Library | Format | Time | Notes | |---------|--------|------|-------| | **xlspy (native)** | XLSB | **0.14 s** | default, native module | | xlspy | XLSX | 0.55 s | native row scanner | | xlspy (Python) | XLSB | 4.53 s | pure Python fallback | | openpyxl (read_only) | XLSX | 8.02 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