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

It definitely is.

  % hyperfine 'http get EXAMPLE.COM' 'ht get EXAMPLE.COM' -w 10 -r 100

  Benchmark #1: http get EXAMPLE.COM
    Time (mean ± σ):     200.8 ms ±   7.4 ms    [User: 178.9 ms, System: 21.1 ms]
    Range (min … max):   166.5 ms … 221.0 ms    100 runs

  Benchmark #2: ht get EXAMPLE.COM
    Time (mean ± σ):      22.7 ms ±   3.2 ms    [User: 8.7 ms, System: 5.6 ms]
    Range (min … max):    15.6 ms …  31.3 ms    100 runs

  Summary
    'ht get EXAMPLE.COM' ran 8.84 ± 1.27 times faster than 'http get EXAMPLE.COM'



Wow. That's serious difference, I didn't expect that for fetching an url.


cpython startup time might account for a good fraction of that




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

Search: