Hacker News new | past | comments | ask | show | jobs | submit login

Can you be more specific on how Swift doubles/triples your performance? Are you using a Swift backend framework for web serving?



Ah yeah. I'm going to write a blog post on this in a few weeks, but basically I'm running tests using `wrk`. Here are the results I just got with a test (this is actually a bit abnormal), but note the requests per second, latency, and the transfer speed per second.

  wrk -t12 -c400 -d10s https://gitignoreio-stage-swift.herokuapp.com
  Running 10s test @ https://gitignoreio-stage-swift.herokuapp.com
    12 threads and 400 connections
    Thread Stats   Avg      Stdev     Max   +/- Stdev
      Latency   265.88ms   78.37ms   1.29s    84.87%
      Req/Sec   119.55     39.81   254.00     67.32%
    14230 requests in 10.09s, 79.67MB read
  Requests/sec:   1410.00
  Transfer/sec:      7.89MB


  wrk -t12 -c400 -d10s https://gitignoreio-stage-node.herokuapp.com
  Running 10s test @ https://gitignoreio-stage-node.herokuapp.com
    12 threads and 400 connections
    Thread Stats   Avg      Stdev     Max   +/- Stdev
      Latency   945.65ms  136.05ms   1.29s    73.12%
      Req/Sec    35.57     21.97   140.00     65.52%
    3783 requests in 10.09s, 19.31MB read
  Requests/sec:    374.81
  Transfer/sec:      1.91MB

And yes, for my Swift backend, I'm using Vapor[1] and the source code is here: https://github.com/joeblau/gitignore.io.

[1] - https://vapor.codes




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: