You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: bm_to_object.rb
    path of file: ./repos/panko_serializer/benchmarks
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative "benchmarking_support"
require_relative "app"
require_relative "setup"

class Pos
    
def benchmark_aliased(prefix, serializer, options = {})
  posts = PostWithAliasModel.all.to_a
  posts_50 = posts.first(50).to_a

  merged_options = options.merge(each_serializer: serializer)

  Benchmark.run("Panko_#{prefix}_PostWithAliasModels_#{posts.count}") do
    Panko::ArraySerializer.new(posts, merged_options).to_json
  end

  Benchmark.run("Panko_#{prefix}_Posts_50") do
    Panko::ArraySerializer.new(posts_50, merged_options).to_json
  end
end