Skip to content

Commit 823d0df

Browse files
minsikzzangshishirmk
authored andcommitted
Disable GC before doing performance test
1 parent 74bb873 commit 823d0df

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

spec/lib/object_serializer_performance_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
include_context 'movie class'
55
include_context 'ams movie class'
66

7+
before(:all) { GC.disable }
8+
after(:all) { GC.enable }
9+
710
context 'when testing performance of serialization' do
811
it 'should create a hash of 1000 records in less than 50 ms' do
912
movies = 1000.times.map { |_i| movie }

0 commit comments

Comments
 (0)