=== run 1 --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 0.50 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsbWriter (pure Python fallback, subprocess) --- --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 1.88 seconds File size: 7.72 MB -------------------------- RESULT seconds=1.8836 size_mb=7.7238 XlsbWriter (Python) finished in: 1.88 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsxWriter --- Generating 50000x50 dataset... XlsxWriter finished in: 0.82 seconds File size: 7.27 MB -------------------------- --- Testing xlsxwriter --- Generating 50000x50 dataset... xlsxwriter finished in: 5.04 seconds File size: 11.35 MB -------------------------- --- Testing openpyxl (write_only=True) --- Generating 50000x50 dataset... openpyxl finished in: 9.29 seconds File size: 11.48 MB -------------------------- --- Reading test_xlspy.xlsb with xlspy --- xlspy read 50000 rows in: 0.07 seconds -------------------------- --- Reading XLSB with xlspy (pure Python fallback, subprocess) --- --- Reading test_xlspy.xlsb with xlspy --- xlspy read 50000 rows in: 3.84 seconds -------------------------- RESULT seconds=3.8350 rows=50000 xlspy (Python) read 50000 rows in: 3.83 seconds -------------------------- --- Reading test_xlspy.xlsx with xlspy --- xlspy read 50000 rows in: 0.44 seconds -------------------------- --- Reading test_openpyxl.xlsx with openpyxl (read_only=True) --- openpyxl read 50000 rows in: 6.14 seconds -------------------------- ================ SUMMARY ================ Dataset: 50000 x 50 (2.5M cells); Darwin arm64 (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.50 s** | 7.72 MB | | xlspy (Python) | XLSB | 1.88 s | 7.72 MB | | xlspy | XLSX | 0.82 s | 7.27 MB | | openpyxl (write_only) | XLSX | 9.29 s | 11.48 MB | | xlsxwriter (constant_memory) | XLSX | 5.04 s | 11.35 MB | ### Read | Library | Format | Time | Notes | |---------|--------|------|-------| | **xlspy (native)** | XLSB | **0.07 s** | default, native module | | xlspy | XLSX | 0.44 s | native row scanner | | xlspy (Python) | XLSB | 3.83 s | pure Python fallback | | openpyxl (read_only) | XLSX | 6.14 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.50 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsbWriter (pure Python fallback, subprocess) --- --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 1.93 seconds File size: 7.72 MB -------------------------- RESULT seconds=1.9303 size_mb=7.7238 XlsbWriter (Python) finished in: 1.93 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsxWriter --- Generating 50000x50 dataset... XlsxWriter finished in: 0.83 seconds File size: 7.27 MB -------------------------- --- Testing xlsxwriter --- Generating 50000x50 dataset... xlsxwriter finished in: 5.09 seconds File size: 11.35 MB -------------------------- --- Testing openpyxl (write_only=True) --- Generating 50000x50 dataset... openpyxl finished in: 9.33 seconds File size: 11.48 MB -------------------------- --- Reading test_xlspy.xlsb with xlspy --- xlspy read 50000 rows in: 0.07 seconds -------------------------- --- Reading XLSB with xlspy (pure Python fallback, subprocess) --- --- Reading test_xlspy.xlsb with xlspy --- xlspy read 50000 rows in: 3.82 seconds -------------------------- RESULT seconds=3.8247 rows=50000 xlspy (Python) read 50000 rows in: 3.82 seconds -------------------------- --- Reading test_xlspy.xlsx with xlspy --- xlspy read 50000 rows in: 0.44 seconds -------------------------- --- Reading test_openpyxl.xlsx with openpyxl (read_only=True) --- openpyxl read 50000 rows in: 6.11 seconds -------------------------- ================ SUMMARY ================ Dataset: 50000 x 50 (2.5M cells); Darwin arm64 (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.50 s** | 7.72 MB | | xlspy (Python) | XLSB | 1.93 s | 7.72 MB | | xlspy | XLSX | 0.83 s | 7.27 MB | | openpyxl (write_only) | XLSX | 9.33 s | 11.48 MB | | xlsxwriter (constant_memory) | XLSX | 5.09 s | 11.35 MB | ### Read | Library | Format | Time | Notes | |---------|--------|------|-------| | **xlspy (native)** | XLSB | **0.07 s** | default, native module | | xlspy | XLSX | 0.44 s | native row scanner | | xlspy (Python) | XLSB | 3.82 s | pure Python fallback | | openpyxl (read_only) | XLSX | 6.11 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.50 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsbWriter (pure Python fallback, subprocess) --- --- Testing (my) XlsbWriter --- Generating 50000x50 dataset... XlsbWriter finished in: 1.90 seconds File size: 7.72 MB -------------------------- RESULT seconds=1.9016 size_mb=7.7238 XlsbWriter (Python) finished in: 1.90 seconds File size: 7.72 MB -------------------------- --- Testing (my) XlsxWriter --- Generating 50000x50 dataset... XlsxWriter finished in: 0.83 seconds File size: 7.27 MB -------------------------- --- Testing xlsxwriter --- Generating 50000x50 dataset... xlsxwriter finished in: 5.09 seconds File size: 11.35 MB -------------------------- --- Testing openpyxl (write_only=True) --- Generating 50000x50 dataset... openpyxl finished in: 9.38 seconds File size: 11.48 MB -------------------------- --- Reading test_xlspy.xlsb with xlspy --- xlspy read 50000 rows in: 0.07 seconds -------------------------- --- Reading XLSB with xlspy (pure Python fallback, subprocess) --- --- Reading test_xlspy.xlsb with xlspy --- xlspy read 50000 rows in: 3.81 seconds -------------------------- RESULT seconds=3.8060 rows=50000 xlspy (Python) read 50000 rows in: 3.81 seconds -------------------------- --- Reading test_xlspy.xlsx with xlspy --- xlspy read 50000 rows in: 0.44 seconds -------------------------- --- Reading test_openpyxl.xlsx with openpyxl (read_only=True) --- openpyxl read 50000 rows in: 6.14 seconds -------------------------- ================ SUMMARY ================ Dataset: 50000 x 50 (2.5M cells); Darwin arm64 (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.50 s** | 7.72 MB | | xlspy (Python) | XLSB | 1.90 s | 7.72 MB | | xlspy | XLSX | 0.83 s | 7.27 MB | | openpyxl (write_only) | XLSX | 9.38 s | 11.48 MB | | xlsxwriter (constant_memory) | XLSX | 5.09 s | 11.35 MB | ### Read | Library | Format | Time | Notes | |---------|--------|------|-------| | **xlspy (native)** | XLSB | **0.07 s** | default, native module | | xlspy | XLSX | 0.44 s | native row scanner | | xlspy (Python) | XLSB | 3.81 s | pure Python fallback | | openpyxl (read_only) | XLSX | 6.14 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