~ubuntu-branches/debian/sid/pyro/sid

« back to all changes in this revision

Viewing changes to examples/benchmark/client.py

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz, Sandro Tosi, Bernd Zeimetz
  • Date: 2009-05-25 14:26:23 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090525142623-31cqgb2pdff6c1az
Tags: 3.9.1-1
[ Sandro Tosi ]
* debian/control
  - switch Vcs-Browser field to viewsvn

[ Bernd Zeimetz ]
* New upstream release.
* debian/patches/usr-bin-env-location.dpatch:
  - Dropping patch, applied usptream. 
* debian/control, debian/rules:
  - Dropping dpatch build-dep and include, not needed anymore. 
* Switching to python-support and dh 7.
* Bumping Standards-Version to 3.8.1. 
* Dropping maintainer scripts, dh creates them properly. 
* Adding missing ${misc:Depends}. 
* Fix several file permissions in the examples package.
* Add symlink to the actual docu in pyro-examples. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
object = testclient.getproxy('benchmark')
11
11
object._setOneway('oneway')
12
 
object._setTimeout(4)
13
12
 
14
13
def f1(): void=object.length('Irmen de Jong')
15
14
def f2(): void=object.timestwo(21)
32
31
print '-------- BENCHMARK REMOTE OBJECT ---------'
33
32
print 'Pay attention to the "fe" test -- this is a Oneway call and is *fast*'
34
33
begin = time.time()
35
 
iters = 500
 
34
iters = 1000
36
35
for f in funcs:
37
36
        print iters,'times',f.__name__,
38
37
        sys.stdout.flush()
49
48
print '-------- BENCHMARK LOCAL OBJECT ---------'
50
49
object=bench.bench()
51
50
begin = time.time()
52
 
iters = 10000
 
51
iters = 200000
53
52
for f in funcs:
54
53
        print iters,'times',f.__name__,
55
54
        voor = time.time()