Last active
February 2, 2025 04:12
-
-
Save mkaschenko/2fdd9910507916be2bc0db8a17d4da4b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| require 'rubyXL' # https://github.com/weshatheleopard/rubyXL | |
| rows = 60_000 | |
| columns = 20 | |
| workbook = RubyXL::Workbook.new | |
| worksheet = workbook.worksheets[0] | |
| worksheet.sheet_name = 'Test' | |
| rows.times do |row| | |
| columns.times do |column| | |
| worksheet.insert_cell(row, column, 'test data') | |
| end | |
| end | |
| workbook.write('test_rubyxl.xlsx') | |
| # 2.8 GHz Intel Core i7 | |
| # 16 GB 1600 MHz DDR3 | |
| # PID COMMAND %CPU MEM | |
| # 0 kernel_task 2.6 1560M+ | |
| # 70742 ruby 99.0 1547M- | |
| # 51971 com.apple.WebKit 0.0 270M | |
| # Processes: 353 total, 2 running, 351 sleeping, 1515 threads |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment