 
   def index(conn, _params) do
     conn
-    |> merge_resp_headers(%{"content-type" => "application/json"})
     |> json(%{"TE Benchmarks\n" => "Started"})
   end
 
   # avoid namespace collision
   def _json(conn, _params) do
     conn
-    |> merge_resp_headers(%{"content-type" => "application/json"})
     |> json(%{message: "Hello, world!"})
   end
 
   def db(conn, _params) do
     conn
-    |> merge_resp_headers(%{"content-type" => "application/json"})
     |> json(Repo.get(World, :rand.uniform(10000)))
   end
 

    end

    conn
    |> merge_resp_headers(%{"content-type" => "application/json"})
    |> json(Enum.map(1..q, fn _ -> Repo.get(World, :rand.uniform(10000)) end))
  end


    end

    conn
    |> json(Enum.map(1..q, fn _ ->
      w = Repo.get(World, :rand.uniform(10000))
      changeset = World.changeset(w, %{randomNumber: :rand.uniform(10000)})
      Repo.update(changeset)
      w
    end))
  end

  def plaintext(conn, _params) do
    conn
    |> text("Hello, world!")
  end
end
