• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gevent / gevent / 2563
78%
master: 78%

Build:
Build:
LAST BUILD BRANCH: python-updates
DEFAULT BRANCH: master
Ran 23 Feb 2018 06:35PM UTC
Jobs 3
Files 67
Run time 84min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2563

push

travis-ci

jamadden
Speed of gevent.local.local more, especially for subclasses (2-3x faster)

Do this with some cython tricks and some caching of type attributes.
Cython 0.28 compiles this code to be quite a bit faster than Cython
0.27 does (the below uses 0.28), but it's still a win on both.

The type caching could potentially be a compatibility issue, but in
practice I suspect it won't be.

Benchmarks on 3.6:

+--------------------+------------------+-----------------------------+
| Benchmark          | 3.6              | 3.6 This Branch             |
+====================+==================+=============================+
| getattr gevent     | 190 ns           | 158 ns: 1.20x faster (-17%) |
+--------------------+------------------+-----------------------------+
| setattr gevent     | 180 ns           | 165 ns: 1.09x faster (-8%)  |
+--------------------+------------------+-----------------------------+
| getattr gevent sub | 540 ns           | 175 ns: 3.09x faster (-68%) |
+--------------------+------------------+-----------------------------+
| setattr gevent sub | 528 ns           | 179 ns: 2.95x faster (-66%) |
+--------------------+------------------+-----------------------------+
| setattr native     | 80.8 ns          | 78.8 ns: 1.03x faster (-2%) |
+--------------------+------------------+-----------------------------+

Not significant (3): getattr native; getattr native sub; setattr native sub

Benchmarks on 2.7:

+--------------------+------------------+-----------------------------+
| Benchmark          | local_27_master2 | local_27_tweak2             |
+====================+==================+=============================+
| getattr gevent     | 162 ns           | 158 ns: 1.03x faster (-3%)  |
+--------------------+------------------+-----------------------------+
| setattr gevent     | 173 ns           | 165 ns: 1.04x faster (-4%)  |
+--------------------+------------------+-----------------------------+
| getattr gevent sub | 471 ns           | 181 ns: ... (continued)

97 of 97 new or added lines in 2 files covered. (100.0%)

8314 of 10724 relevant lines covered (77.53%)

2.09 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
11
100.0
src/gevent/greenlet.py
86
100.0
src/gevent/local.py
Jobs
ID Job ID Ran Files Coverage
1 2563.1 (TASK=test-py27) 23 Feb 2018 08:00PM UTC 0
72.32
Travis Job 2563.1
3 2563.3 (TASK=test-py36) 23 Feb 2018 06:36PM UTC 0
69.82
Travis Job 2563.3
4 2563.4 (TASK=test-py37) 23 Feb 2018 06:35PM UTC 0
69.84
Travis Job 2563.4
Source Files on build 2563
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2563
  • b1125a79 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc