Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
357cccea
Commit
357cccea
authored
Oct 28, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benchmarks: split micro.sh into smaller files
parent
b4a3dc40
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
17 deletions
+37
-17
benchmarks/micro.sh
benchmarks/micro.sh
+8
-17
benchmarks/micro_greenlet_link.sh
benchmarks/micro_greenlet_link.sh
+8
-0
benchmarks/micro_run_callback.sh
benchmarks/micro_run_callback.sh
+10
-0
benchmarks/micro_semaphore.sh
benchmarks/micro_semaphore.sh
+5
-0
benchmarks/micro_sleep.sh
benchmarks/micro_sleep.sh
+6
-0
No files found.
benchmarks/micro.sh
View file @
357cccea
#!/bin/sh
set
-e
set
-x
set
-e
-x
python
-c
'import gevent.core; print gevent.__version__, gevent.core.get_version(), getattr(gevent.core, "get_method", lambda: "n/a")(), getattr(gevent, "get_hub", lambda: "n/a")()'
python
-mtimeit
-r
6
-s
'obj = Exception(); obj.x=5'
'obj.x'
python
-mtimeit
-r
6
-s
'from gevent import get_hub; get_hub()'
'get_hub()'
python
-mtimeit
-r
6
-s
'from gevent import getcurrent'
'getcurrent()'
python
-mtimeit
-r
6
-s
'from gevent.lock import Semaphore; s = Semaphore()'
's.release()'
python
-mtimeit
-r
6
-s
'from gevent.coros import Semaphore; from gevent import spawn_raw; s = Semaphore(0)'
'spawn_raw(s.release()); s.acquire()'
python
-mtimeit
-r
6
-s
'from gevent.lock import Semaphore; s = Semaphore()'
's.release()'
python
-mtimeit
-r
6
-s
'from gevent.coros import Semaphore; from gevent import spawn_raw; s = Semaphore(0)'
'spawn_raw(s.release); s.acquire()'
python
-mtimeit
-r
6
-s
'from gevent.coros import Semaphore; from gevent import spawn_raw; s = Semaphore(0)'
'spawn_raw(s.release); spawn_raw(s.release); spawn_raw(s.release); spawn_raw(s.release); s.acquire(); s.acquire(); s.acquire(); s.acquire()'
python
-mtimeit
-r
6
-s
'from gevent import spawn; f = lambda : 5'
'spawn(f)'
python
-mtimeit
-r
6
-s
'from gevent import spawn; f = lambda : 5'
'spawn(f).join()'
python
-mtimeit
-r
6
-s
'from gevent import spawn, run; f = lambda : 5'
'for _ in xrange(10000): spawn(f)'
'run()'
python
-mtimeit
-r
6
-s
'from gevent import spawn_raw; f = lambda : 5'
'spawn_raw(f)'
python
-mtimeit
-r
6
-s
'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5'
'run_cb(f)'
python
-mtimeit
-r
6
-s
'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5'
'run_cb(f)'
'run()'
python
-mtimeit
-r
6
-s
'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5'
'for _ in xrange(100): run_cb(f)'
python
-mtimeit
-r
6
-s
'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5'
'for _ in xrange(100): run_cb(f)'
'run()'
python
-mtimeit
-r
6
-s
'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5'
'for _ in xrange(10000): run_cb(f)'
python
-mtimeit
-r
6
-s
'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5'
'for _ in xrange(10000): run_cb(f)'
'run()'
python
-mtimeit
-r
6
-s
'from gevent import sleep; f = lambda : 5'
'sleep(0)'
python
-mtimeit
-r
6
-s
'from gevent import sleep; f = lambda : 5'
'sleep(0.0001)'
python
-mtimeit
-r
6
-s
'from gevent import spawn; g = spawn(lambda: 5); l = lambda: 5'
'for _ in xrange(1000): g.link(l)'
python
-mtimeit
-r
6
-s
'from gevent import spawn; g = spawn(lambda: 5); l = lambda *args: 5'
'for _ in xrange(10): g.link(l);'
'g.join()'
python
-mtimeit
-r
6
-s
'from gevent import spawn; g = spawn(lambda: 5); l = lambda *args: 5'
'for _ in xrange(100): g.link(l);'
'g.join()'
python
-mtimeit
-r
6
-s
'from gevent import spawn; g = spawn(lambda: 5); l = lambda *args: 5'
'for _ in xrange(1000): g.link(l);'
'g.join()'
python
-mtimeit
-r
6
-s
'from gevent import spawn; g = spawn(lambda: 5); l = lambda *args: 5'
'for _ in xrange(10000): g.link(l);'
'g.join()'
python
-mtimeit
-r
6
-s
'from gevent import spawn; g = spawn(lambda: 5); l = lambda *args: 5'
'for _ in xrange(100000): g.link(l);'
'g.join()'
benchmarks/micro_run_callback.sh
benchmarks/micro_semaphore.sh
benchmarks/micro_sleep.sh
benchmarks/micro_greenlet_link.sh
benchmarks/micro_greenlet_link.sh
0 → 100755
View file @
357cccea
#!/bin/sh
set
-e
-x
python
-mtimeit
-r
6
-s
'from gevent import spawn; g = spawn(lambda: 5); l = lambda: 5'
'for _ in xrange(1000): g.link(l)'
python
-mtimeit
-r
6
-s
'from gevent import spawn; g = spawn(lambda: 5); l = lambda *args: 5'
'for _ in xrange(10): g.link(l);'
'g.join()'
python
-mtimeit
-r
6
-s
'from gevent import spawn; g = spawn(lambda: 5); l = lambda *args: 5'
'for _ in xrange(100): g.link(l);'
'g.join()'
python
-mtimeit
-r
6
-s
'from gevent import spawn; g = spawn(lambda: 5); l = lambda *args: 5'
'for _ in xrange(1000): g.link(l);'
'g.join()'
python
-mtimeit
-r
6
-s
'from gevent import spawn; g = spawn(lambda: 5); l = lambda *args: 5'
'for _ in xrange(10000): g.link(l);'
'g.join()'
python
-mtimeit
-r
6
-s
'from gevent import spawn; g = spawn(lambda: 5); l = lambda *args: 5'
'for _ in xrange(100000): g.link(l);'
'g.join()'
benchmarks/micro_run_callback.sh
0 → 100755
View file @
357cccea
#!/bin/sh
set
-e
-x
python
-mtimeit
-r
6
-s
'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5'
'run_cb(f)'
python
-mtimeit
-r
6
-s
'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5'
'run_cb(f)'
'run()'
python
-mtimeit
-r
6
-s
'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5'
'for _ in xrange(100): run_cb(f)'
python
-mtimeit
-r
6
-s
'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5'
'for _ in xrange(100): run_cb(f)'
'run()'
python
-mtimeit
-r
6
-s
'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5'
'for _ in xrange(10000): run_cb(f)'
python
-mtimeit
-r
6
-s
'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5'
'for _ in xrange(10000): run_cb(f)'
'run()'
benchmarks/micro_semaphore.sh
0 → 100755
View file @
357cccea
#!/bin/sh
set
-e
-x
python
-mtimeit
-r
6
-s
'from gevent.lock import Semaphore; s = Semaphore()'
's.release()'
python
-mtimeit
-r
6
-s
'from gevent.coros import Semaphore; from gevent import spawn_raw; s = Semaphore(0)'
'spawn_raw(s.release); s.acquire()'
python
-mtimeit
-r
6
-s
'from gevent.coros import Semaphore; from gevent import spawn_raw; s = Semaphore(0)'
'spawn_raw(s.release); spawn_raw(s.release); spawn_raw(s.release); spawn_raw(s.release); s.acquire(); s.acquire(); s.acquire(); s.acquire()'
benchmarks/micro_sleep.sh
0 → 100755
View file @
357cccea
#!/bin/sh
set
-e
-x
python
-mtimeit
-r
6
-s
'from gevent import sleep; f = lambda : 5'
'sleep(0)'
python
-mtimeit
-r
6
-s
'from gevent import sleep; f = lambda : 5'
'sleep(0.00001)'
python
-mtimeit
-r
6
-s
'from gevent import sleep; f = lambda : 5'
'sleep(0.0001)'
python
-mtimeit
-r
6
-s
'from gevent import sleep; f = lambda : 5'
'sleep(0.001)'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment