This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// JSONService.swift | |
// SwiftPlaces | |
// | |
// Created by Joshua Smith on 7/25/14. | |
// Copyright (c) 2014 iJoshSmith. All rights reserved. | |
// | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.collection.immutable.ListMap | |
object ListMapBench extends testing.Benchmark { | |
val nReads = sys.props("nreads").toInt | |
val size = sys.props("size").toInt | |
def listMap = ListMap() ++ ((0 until size) map { t => (t,t) }) | |
def run = { | |
val l = listMap | |
var x = 0 |