Code Monkey home page Code Monkey logo

jsonbenchmarks's Introduction

Results

Just Parsing

Foundation vdka/JSON Jay Vapor/JSON Zewo/JSON memcpy(100x)
-Ounchecked 8ms 16ms 101ms 154ms 57.6ms 5.19ms
-O 8.86ms 19.1ms 130ms 173ms 75.2ms 5.37ms
-Onone 9.28ms 113ms 595ms 237ms 378ms 7.29ms
-c release 87.1ms

Note: Foundation here is on Darwin which is not the same as the this code that will run on linux.

Parsing & Model Transform

Foundation vdka/JSON
-Ounchecked 138ms 17.2ms
-O 140ms 21.1ms
-Onone 156ms 99.5ms
struct User {
  let id: String
  let index: Int
  let guid: String
  let isActive: Bool
  let balance: String
  let picture: String
  let age: Int
  let eyeColor: Color
  let name: String
  let gender: Gender
  let company: String
  let email: String
  let phone: String
  let address: String
  let about: String
  let registered: String
  let latitude: Double
  let longitude: Double
  let tags: [String]
  let friends: [Friend]
  let greeting: String
  let favoriteFruit: String

  enum Color: String {
    case red, green, blue, brown
  }

  enum Gender: String {
    case male, female
  }

  struct Friend {
    let id: Int
    let name: String
  }
}

Specs

jsonbenchmarks's People

Contributors

anviking avatar vdka avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.