Skip to content

Commit

Permalink
Add nogvl test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Nov 20, 2024
1 parent 2217b1a commit 7477c21
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/io/buffer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2024, by Samuel Williams.

describe IO::Buffer do
it "can copy a large buffer (releasing the GVL)" do
source = IO::Buffer.new(1024 * 1024 * 10)
destination = IO::Buffer.new(source.size)

source.copy(destination)
end
end

0 comments on commit 7477c21

Please sign in to comment.