1. 03 May, 2018 3 commits
  2. 29 Apr, 2018 1 commit
  3. 27 Apr, 2018 2 commits
  4. 26 Apr, 2018 5 commits
  5. 25 Apr, 2018 5 commits
  6. 23 Apr, 2018 6 commits
    • Jason Madden's avatar
      Merge pull request #1190 from gevent/cython-tracer · ab5272c5
      Jason Madden authored
      Compile the monitor greenlet tracer with Cython
      ab5272c5
    • Jason Madden's avatar
      Compile the monitor greenlet tracer with Cython. · aa911ed0
      Jason Madden authored
      This makes things 54% faster. In fact, the monitor tracer is now faster than a trivial tracer implemented in python (settrace(lambda e, a: None)).
      
      +-------------------+-----------------+-----------------------------+
      | Benchmark         | 37_bench_tracer | 37_bench_tracer_cython_opt3 |
      +===================+=================+=============================+
      | monitor tracer    | 1.62 us         | 739 ns: 2.20x faster (-54%) |
      +-------------------+-----------------+-----------------------------+
      | max switch tracer | 3.06 us         | 874 ns: 3.50x faster (-71%) |
      +-------------------+-----------------+-----------------------------+
      | hub switch tracer | 2.16 us         | 815 ns: 2.66x faster (-62%) |
      +-------------------+-----------------+-----------------------------+
      
      Not significant (2): no tracer; trivial tracer
      aa911ed0
    • Jason Madden's avatar
      Move the greenlet tracers to their own file and compile with cython. · 4231079a
      Jason Madden authored
      Unoptimized still makes them 25% faster:
      
      +-------------------+-----------------+------------------------------+
      | Benchmark         | 37_bench_tracer | 37_bench_tracer_first_cython |
      +===================+=================+==============================+
      | trivial tracer    | 792 ns          | 786 ns: 1.01x faster (-1%)   |
      +-------------------+-----------------+------------------------------+
      | monitor tracer    | 1.62 us         | 1.24 us: 1.31x faster (-24%) |
      +-------------------+-----------------+------------------------------+
      | max switch tracer | 3.06 us         | 1.89 us: 1.62x faster (-38%) |
      +-------------------+-----------------+------------------------------+
      | hub switch tracer | 2.16 us         | 1.68 us: 1.29x faster (-22%) |
      +-------------------+-----------------+------------------------------+
      4231079a
    • Jason Madden's avatar
      Add benchmark for greenlet tracers. [skip ci] · 596773a1
      Jason Madden authored
      Current numbers on 3.7b3:
      
      no tracer: Mean +- std dev: 414 ns +- 10 ns
      trivial tracer: Mean +- std dev: 792 ns +- 16 ns
      monitor tracer: Mean +- std dev: 1.62 us +- 0.12 us
      max switch tracer: Mean +- std dev: 3.06 us +- 0.12 us
      hub switch tracer: Mean +- std dev: 2.16 us +- 0.04 us
      596773a1
    • Jason Madden's avatar
      Merge pull request #1189 from felixonmars/patch-2 · 58754ba8
      Jason Madden authored
      Fix a typo [skip ci]
      58754ba8
    • Felix Yan's avatar
      Fix a typo · 9633ecc9
      Felix Yan authored
      9633ecc9
  7. 20 Apr, 2018 3 commits
  8. 19 Apr, 2018 7 commits
  9. 18 Apr, 2018 5 commits
    • Jason Madden's avatar
      Fill in whatsnew_1_3.rst [skip ci] · 72c428f3
      Jason Madden authored
      72c428f3
    • Jason Madden's avatar
      643ee9fc
    • Jason Madden's avatar
      Merge pull request #1181 from gevent/libuv120 · 43848b60
      Jason Madden authored
      Update libuv to 1.20
      43848b60
    • Jason Madden's avatar
      Update libuv to 1.20 · 3a599958
      Jason Madden authored
      3a599958
    • Jason Madden's avatar
      More socket benchmarks [skip ci] · 7a0a9585
      Jason Madden authored
      We're more competitive using a forked process:
      
      .....................
      gevent socketpair sendall greenlet: Mean +- std dev: 256 ms +- 6 ms
      .....................
      native socketpair sendall thread: Mean +- std dev: 44.4 ms +- 1.5 ms
      .....................
      WARNING: the benchmark result may be unstable
      * the standard deviation (7.31 ms) is 13% of the mean (57.9 ms)
      * the maximum (89.0 ms) is 54% greater than the mean (57.9 ms)
      
      Try to rerun the benchmark with more runs, values and/or loops.
      Run 'python -m perf system tune' command to reduce the system jitter.
      Use perf stats, perf dump and perf hist to analyze results.
      Use --quiet option to hide these warnings.
      
      gevent socketpair sendall fork: Mean +- std dev: 57.9 ms +- 7.3 ms
      .....................
      native socketpair sendall fork: Mean +- std dev: 44.6 ms +- 2.0 ms
      .....................
      native udp sendto: Mean +- std dev: 30.6 ms +- 1.1 ms
      .....................
      gevent udp sendto: Mean +- std dev: 37.5 ms +- 2.7 ms
      
      (python 3.7)
      7a0a9585
  10. 16 Apr, 2018 3 commits