=== run 1 --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 1.07 seconds File size: 8.10 MB -------------------------- --- Testing (my) XlsbWriter (pure Python fallback, subprocess) --- --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 3.26 seconds File size: 8.10 MB -------------------------- RESULT seconds=3.2646 size_mb=8.1019 XlsbWriter (Python) finished in: 3.26 seconds File size: 8.10 MB -------------------------- --- Testing (my) XlsxWriter --- Generating 50000x50 dataset... XlsxWriter finished in: 1.59 seconds File size: 7.11 MB -------------------------- --- Testing xlsxwriter --- Generating 50000x50 dataset... xlsxwriter finished in: 9.43 seconds File size: 11.57 MB -------------------------- --- Testing openpyxl (write_only=True) --- Generating 50000x50 dataset... openpyxl finished in: 17.53 seconds File size: 11.71 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: 6.49 seconds -------------------------- RESULT seconds=6.4866 rows=50000 xlspy (Python) read 50000 rows in: 6.49 seconds -------------------------- --- Reading test_xlspy.xlsx with xlspy --- xlspy read 50000 rows in: 0.73 seconds -------------------------- --- Reading test_openpyxl.xlsx with openpyxl (read_only=True) --- openpyxl read 50000 rows in: 10.86 seconds -------------------------- ================ SUMMARY ================ Dataset: 50000 x 50 (2.5M cells); Windows AMD64 (Python 3.14.2); xlspy 0.10.1, openpyxl 3.1.5, xlsxwriter 3.3.1 ### Write | Library | Format | Time | Size | |---------|--------|------|------| | **xlspy (native)** | XLSB | **1.07 s** | 8.10 MB | | xlspy (Python) | XLSB | 3.26 s | 8.10 MB | | xlspy | XLSX | 1.59 s | 7.11 MB | | openpyxl (write_only) | XLSX | 17.53 s | 11.71 MB | | xlsxwriter (constant_memory) | XLSX | 9.43 s | 11.57 MB | ### Read | Library | Format | Time | Notes | |---------|--------|------|-------| | **xlspy (native)** | XLSB | **0.14 s** | default, native module | | xlspy | XLSX | 0.73 s | uses expat XML parser (C) | | xlspy (Python) | XLSB | 6.49 s | pure Python fallback | | openpyxl (read_only) | XLSX | 10.86 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: 1.08 seconds File size: 8.10 MB -------------------------- --- Testing (my) XlsbWriter (pure Python fallback, subprocess) --- --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 3.28 seconds File size: 8.10 MB -------------------------- RESULT seconds=3.2798 size_mb=8.1019 XlsbWriter (Python) finished in: 3.28 seconds File size: 8.10 MB -------------------------- --- Testing (my) XlsxWriter --- Generating 50000x50 dataset... XlsxWriter finished in: 1.67 seconds File size: 7.11 MB -------------------------- --- Testing xlsxwriter --- Generating 50000x50 dataset... xlsxwriter finished in: 9.83 seconds File size: 11.57 MB -------------------------- --- Testing openpyxl (write_only=True) --- Generating 50000x50 dataset... openpyxl finished in: 17.43 seconds File size: 11.71 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: 6.53 seconds -------------------------- RESULT seconds=6.5339 rows=50000 xlspy (Python) read 50000 rows in: 6.53 seconds -------------------------- --- Reading test_xlspy.xlsx with xlspy --- xlspy read 50000 rows in: 0.73 seconds -------------------------- --- Reading test_openpyxl.xlsx with openpyxl (read_only=True) --- openpyxl read 50000 rows in: 10.75 seconds -------------------------- ================ SUMMARY ================ Dataset: 50000 x 50 (2.5M cells); Windows AMD64 (Python 3.14.2); xlspy 0.10.1, openpyxl 3.1.5, xlsxwriter 3.3.1 ### Write | Library | Format | Time | Size | |---------|--------|------|------| | **xlspy (native)** | XLSB | **1.08 s** | 8.10 MB | | xlspy (Python) | XLSB | 3.28 s | 8.10 MB | | xlspy | XLSX | 1.67 s | 7.11 MB | | openpyxl (write_only) | XLSX | 17.43 s | 11.71 MB | | xlsxwriter (constant_memory) | XLSX | 9.83 s | 11.57 MB | ### Read | Library | Format | Time | Notes | |---------|--------|------|-------| | **xlspy (native)** | XLSB | **0.14 s** | default, native module | | xlspy | XLSX | 0.73 s | uses expat XML parser (C) | | xlspy (Python) | XLSB | 6.53 s | pure Python fallback | | openpyxl (read_only) | XLSX | 10.75 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: 1.06 seconds File size: 8.10 MB -------------------------- --- Testing (my) XlsbWriter (pure Python fallback, subprocess) --- --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 3.28 seconds File size: 8.10 MB -------------------------- RESULT seconds=3.2837 size_mb=8.1019 XlsbWriter (Python) finished in: 3.28 seconds File size: 8.10 MB -------------------------- --- Testing (my) XlsxWriter --- Generating 50000x50 dataset... XlsxWriter finished in: 1.57 seconds File size: 7.11 MB -------------------------- --- Testing xlsxwriter --- Generating 50000x50 dataset... xlsxwriter finished in: 9.59 seconds File size: 11.57 MB -------------------------- --- Testing openpyxl (write_only=True) --- Generating 50000x50 dataset... openpyxl finished in: 17.60 seconds File size: 11.71 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: 6.51 seconds -------------------------- RESULT seconds=6.5106 rows=50000 xlspy (Python) read 50000 rows in: 6.51 seconds -------------------------- --- Reading test_xlspy.xlsx with xlspy --- xlspy read 50000 rows in: 0.72 seconds -------------------------- --- Reading test_openpyxl.xlsx with openpyxl (read_only=True) --- openpyxl read 50000 rows in: 10.69 seconds -------------------------- ================ SUMMARY ================ Dataset: 50000 x 50 (2.5M cells); Windows AMD64 (Python 3.14.2); xlspy 0.10.1, openpyxl 3.1.5, xlsxwriter 3.3.1 ### Write | Library | Format | Time | Size | |---------|--------|------|------| | **xlspy (native)** | XLSB | **1.06 s** | 8.10 MB | | xlspy (Python) | XLSB | 3.28 s | 8.10 MB | | xlspy | XLSX | 1.57 s | 7.11 MB | | openpyxl (write_only) | XLSX | 17.60 s | 11.71 MB | | xlsxwriter (constant_memory) | XLSX | 9.59 s | 11.57 MB | ### Read | Library | Format | Time | Notes | |---------|--------|------|-------| | **xlspy (native)** | XLSB | **0.14 s** | default, native module | | xlspy | XLSX | 0.72 s | uses expat XML parser (C) | | xlspy (Python) | XLSB | 6.51 s | pure Python fallback | | openpyxl (read_only) | XLSX | 10.69 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