perf(graphql): add graphql benchmark
This commit is contained in:
parent
902dc678de
commit
260d8d2fec
2 changed files with 29 additions and 0 deletions
|
@ -8,4 +8,14 @@ namespace :benchmarks do
|
|||
x.report("Démarche 55824") { ProcedureExportService.new(p_55824, p_55824.dossiers).to_xlsx }
|
||||
end
|
||||
end
|
||||
|
||||
desc 'Benchmark graphql'
|
||||
task graphql: :environment do
|
||||
p_45964 = Procedure.find(45964)
|
||||
p_55824 = Procedure.find(55824)
|
||||
Benchmark.bm do |x|
|
||||
x.report("Démarche 45964") { SerializerService.dossiers(p_45964) }
|
||||
x.report("Démarche 55824") { SerializerService.dossiers(p_55824) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue