Mihai Criveti | 2 Jul 22:02
Picon

Ported PyBench to Jython, ran a few benchmarks against python

Here's a rough patch for PyBench (a python benchmark designed to test various python implementations). It should now run on Jython.

Would be interesting to see a few more user testing and platforms. Mine is Solaris.

Using Jython (svn):
==================

Jython 2.3a0+ (trunk:4838M, Jul 2 2008, 22:18:30)
[Java HotSpot(TM) Server VM (Sun Microsystems Inc.)] on java1.6.0_06


cthulhu% ./pybench.py
-------------------------------------------------------------------------------
PYBENCH 2.0
-------------------------------------------------------------------------------
* Python version doesn't support gc.disable
* Python version doesn't support sys.setcheckinterval
* using timer: time.time

Calibrating tests. Please wait... done.

Running 10 round(s) of the suite at warp factor 10:

* Round 1 done in 15.507 seconds.
* Round 2 done in 13.738 seconds.
* Round 3 done in 9.633 seconds.
* Round 4 done in 8.087 seconds.
* Round 5 done in 7.980 seconds.
* Round 6 done in 7.784 seconds.
* Round 7 done in 7.727 seconds.
* Round 8 done in 7.729 seconds.
* Round 9 done in 7.743 seconds.
* Round 10 done in 7.668 seconds.

-------------------------------------------------------------------------------
Benchmark: 2008-07-02 22:41:31
-------------------------------------------------------------------------------

    Rounds: 10
    Warp:   10
    Timer:  time.time

Test                             minimum  average  operation  overhead
-------------------------------------------------------------------------------
          BuiltinFunctionCalls:     36ms     69ms    0.14us    0.500ms
           BuiltinMethodLookup:     72ms    124ms    0.12us    0.550ms
                 CompareFloats:     38ms     74ms    0.06us    0.650ms
         CompareFloatsIntegers:     69ms     95ms    0.11us    0.500ms
               CompareIntegers:     62ms     96ms    0.05us    0.950ms
        CompareInternedStrings:       2.75us    0.300ms
       CreateStringsWithConcat:    151ms    176ms    0.18us    0.550ms
       CreateUnicodeWithConcat:     69ms     85ms    0.21us    0.200ms
                  DictCreation:    556ms    607ms    1.52us    0.200ms
             DictWithFloatKeys:     97ms    132ms    0.15us    0.400ms
           DictWithIntegerKeys:     81ms    101ms    0.08us    0.550ms
            DictWithStringKeys:     88ms    110ms    0.09us    0.550ms
                      ForLoops:     88ms    137ms    5.50us    0.000ms
                    IfThenElse:    350ms    353ms    0.26us    0.400ms
                   ListSlicing:     46ms     56ms    4.02us    0.050ms
                NestedForLoops:     87ms     93ms    0.06us    0.000ms
          NormalClassAttribute:     99ms    140ms    0.12us    0.250ms
       NormalInstanceAttribute:     92ms    135ms    0.11us    0.250ms
           PythonFunctionCalls:     88ms    132ms    0.40us    0.150ms
             PythonMethodCalls:    109ms    149ms    0.66us    0.100ms
                     Recursion:    125ms    131ms    2.61us    0.250ms
                  SecondImport:    125ms    145ms    1.45us    0.100ms
           SecondPackageImport:    133ms    141ms    1.41us    0.100ms
         SecondSubmoduleImport:    210ms    218ms    2.18us    0.100ms
       SimpleComplexArithmetic:     52ms     99ms    0.11us    0.200ms
        SimpleDictManipulation:     87ms    148ms    0.12us    0.250ms
         SimpleFloatArithmetic:     56ms    137ms    0.10us    0.300ms
      SimpleIntFloatArith    130ms    0.11us    0.250ms
                StringMappings:    213ms    228ms    0.90us    0.250ms
              StringPredicates:     82ms    110ms    0.16us    0.700ms
                 StringSlicing:     51ms     77ms    0.14us    0.450ms
                     TryExcept:      3ms     14ms    0.01us    0.400ms
                TryRaiseExcept:    651ms    691ms   10.79us    0.200ms
                  TupleSlicing:     78ms    126ms    0.48us    0.050ms
               UnicodeMappings:    163ms    181ms    5.02us    0.400ms
             UnicodePredicates:     66ms    107ms    0.20us    0.950ms
                UnicodeSlicing:   1355ms   1387ms    2.83us    0.400ms
-------------------------------------------------------------------------------
Totals:                           7600ms   9359ms





Using Python:
=============

Python 2.4.4 (#1, May 19 2008, 02:13:30) [C] on sunos5


cthulhu% ./pybench.py
-------------------------------------------------------------------------------
PYBENCH 2.0
-------------------------------------------------------------------------------
* disabled garbage collection
* system check interval set to maximum: 2147483647
* using timer: time.time

Calibrating tests. Please wait... done.

Running 10 round(s) of the suite at warp factor 10:

* Round 1 done in 6.896 seconds.
* Round 2 done in 6.803 seconds.
* Round 3 done in 6.814 seconds.
* Round 4 done in 6.774 seconds.
* Round 5 done in 6.797 seconds.
* Round 6 done in 6.801 seconds.
* Round 7 done in 6.776 seconds.
* Round 8 done in 6.761 seconds.
* Round 9 done in 6.766 seconds.
* Round 10 done in 6.833 seconds.

--------0.11us    0.217ms
                 CompareFloats:     87ms     87ms    0.07us    0.249ms
         CompareFloatsIntegers:    101ms    102ms    0.11us    0.186ms
               CompareIntegers:     78ms     78ms    0.04us    0.373ms
        CompareInternedStrings:    128ms    130ms    0.09us    0.940ms
                  CompareLongs:     90ms     91ms    0.09us    0.215ms
                CompareStrings:     97ms     98ms    0.10us    0.627ms
                CompareUnicode:    102ms    103ms    0.14us    0.477ms
                 ConcatStrings:    166ms    177ms    0.35us    0.415ms
                 ConcatUnicode:    124ms    139ms    0.46us    0.296ms
               CreateInstances:    169ms    170ms    1.52us    0.252ms
            CreateNewInstances:    148ms    149ms    1.77us    0.251ms
       CreateStringsWithConcat:    124ms    124ms    0.12us    0.616ms
       CreateUnicodeWithConcat:    172ms    175ms    0.44us    0.246ms
                  DictCreation:     96ms     98ms    0.25us    0.246ms
             DictWithFloatKeys:    163ms    164ms    0.18us    0.459ms
           DictWithIntegerKeys:    103ms    104ms    0.09us    0.616ms
            DictWithStringKeys:     88ms     90ms    0.08us    0.616ms
                      ForLoops:     66ms     66ms    2.66us    0.058ms
                    IfThenElse:     69ms     69ms    0.05us    0.466ms
                   ListSlicing:     68ms     69ms    4.90us    0.067ms
                NestedForLoops:     95ms     96ms    0.06us    0.020ms
          NormalClassAttrib  128ms    1.28us    0.123ms
       SimpleComplexArithmetic:    153ms    154ms    0.18us    0.248ms
        SimpleDictManipulation:    150ms    153ms    0.13us    0.311ms
         SimpleFloatArithmetic:    107ms    108ms    0.08us    0.369ms
      SimpleIntFloatArithmetic:     83ms     83ms    0.06us    0.371ms
       SimpleIntegerArithmetic:     82ms     83ms    0.06us    0.372ms
        SimpleListManipulation:    139ms    139ms    0.12us    0.403ms
          SimpleLongArithmetic:    133ms    134ms    0.20us    0.214ms
                    SmallLists:    169ms    170ms    0.25us    0.247ms
                   SmallTuples:    142ms    143ms    0.26us    0.277ms
         SpecialClassAttribute:    112ms    113ms    0.09us    0.311ms
      SpecialInstanceAttribute:    181ms    183ms    0.15us    0.310ms
                StringMappings:    134ms    134ms    0.53us    0.347ms
              StringPredicates:    206ms    206ms    0.29us    1.659ms
                 StringSlicing:    167ms    168ms    0.30us    0.546ms
 ---------------------------------------------------------------
Totals:                           6691ms   6802ms



PyBench is Revision 64668: /python/trunk/Tools/pybench

http://svn.python.org/projects/python/trunk/Tools/pybench/




svn patch for PyBench (port to Jython):

Index: pybench.py
===================================================================
--- pybench.py    (revision 64668)
+++ pybench.py    (working copy)
<at> <at> -1,4 +1,4 <at> <at>
-#!/usr/local/bin/python -O
+#!/usr/local/bin/python
 
 """ A Python Benchmark Suite
 
<at> <at> -34,7 +34,7 <at> <at>
 WITH THE USE OR PERFORMANCE OF THIS SOFTWARE !
 """
 
-import sys, time, operator, string, platform
+import sys, time, operator, string
 from CommandLine import *
 
 try:
<at> <at> -100,55 +100,7 <at> <at>
     else:
         raise TypeError('unknown timer type: %s' % timertype)
 
-def get_machine_details():
 
-    if _debug:
-        print 'Getting machine details...'
-    buildno, builddate = platform.python_build()
-    python = platform.python_version()
-    try:
-        unichr(100000)
-    except ValueError:
-        # UCS2 build (standard)
-        unicode = 'UCS2'
-    except NameError:
-        unicode = None
-    else:
-        # UCS4 build (most recent Linux distros)
-        unicode = 'UCS4'
-    bits, linkage = platform.architecture()
-    return {
-        'platform': platform.platform(),
-        'processor': platform.processor(),
-        'executable': sys.executable,
-        'implementation': getattr(platform, 'python_implementation',
-                                  lambda:'n/a')(),
-        'python': platform.python_version(),
-        'compiler': platform.python_compiler(),
-        'buildno': buildno,
-        'builddate': builddate,
-        'unicode': unicode,
-        'bits': bits,
-        }
-
-def print_machine_details(d, indent=''):
-
-    l = ['Machine Details:',
-         '   Platform ID:    %s' % d.get('platform', 'n/a'),
-         '   Processor:      %s' % d.get('processor', 'n/a'),
-         '',
-         'Python:',
-         '   Implementation: %s' % d.get('implementation', 'n/a'),
-         '   Executable:     %s' % d.get('executable', 'n/a'),
-         '   Version:        %s' % d.get('python', 'n/a'),
-         '   Compiler:       %s' % d.get('compiler', 'n/a'),
-         '   Bits:           %s' % d.get('bits', 'n/a'),
-         '   Build:          %s (#%s)' % (d.get('builddate', 'n/a'),
-                                          d.get('buildno', 'n/a')),
-         '   Unicode:        %s' % d.get('unicode', 'n/a'),
-         ]
-    print indent + string.join(l, '\n' + indent) + '\n'
-
 ### Test baseclass
 
 class Test:
<at> <at> -438,7 +390,6 <at> <at>
         self.tests = {}
         if _debug:
             print 'Getting machine details...'
-        self.machine_details = get_machine_details()
 
         # Make .version an instance attribute to have it saved in the
         # Benchmark pickle
<at> <at> -457,17 +408,6 <at> <at>
             compatible with the other Benchmark instance or not.
 
         """
-        if self.version != other.version:
-            return 0
-        if (self.machine_details == other.machine_details and
-            self.timer != other.timer):
-            return 0
-        if (self.calibration_runs == 0 and
-            other.calibration_runs != 0):
-            return 0
-        if (self.calibration_runs != 0 and
-            other.calibration_runs == 0):
-            return 0
         return 1
 
     def load_tests(self, setupmod, limitnames=None):
<at> <at> -593,9 +533,6 <at> <at>
         print '    Warp:   %s' % self.warp
         print '    Timer:  %s' % self.timer
         print
-        if self.machine_details:
-            print_machine_details(self.machine_details, indent='    ')
-            print
 
     def print_benchmark(self, hidenoise=0, limitnames=None):
 
<at> <at> -838,9 +775,6 <at> <at>
         print '-' * LINE
         print 'PYBENCH %s' % __version__
         print '-' * LINE
-        print '* using %s %s' % (
-            getattr(platform, 'python_implementation', lambda:'Python')(),
-            string.join(string.split(sys.version), ' '))
 
         # Switch off garbage collection
         if not withgc:



Platform information:
--------------------

cthulhu% prtdiag 
System Configuration: Acer, inc. Aspire 5920G   
BIOS Configuration: Acer    v0.3508 05/22/2007


Core 2 Duo T7300 <at> 2Ghz, 4MB Cache
2GB DDR 667


cthulhu% uname -a
SunOS cthulhu 5.11 snv_91 i86pc i386 i86pc
cthulhu% cat /etc/release
                   Solaris Express Community Edition snv_91 X86
           Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                             Assembled 03 June 2008

 

--
Criveti Mihai
http://unixsadm.blogspot.com


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Jython-users mailing list
Jython-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users
Mihai Criveti | 2 Jul 22:28
Picon

Ported PyBench to Jython, ran a few benchmarks against python

Here's a rough patch for PyBench (a python benchmark designed to test various python implementations). It should now run on Jython.


Would be interesting to see a few more user testing and platforms, as well as Java implementations.

I just basically symlinked jython then python in /usr/local/bin/python for these tests.

Daily testing / graphs to see svn code evolution may also be nice.

Using Jython (svn):
==================

Jython 2.3a0+ (trunk:4838M, Jul 2 2008, 22:18:30)
[Java HotSpot(TM) Server VM (Sun Microsystems Inc.)] on java1.6.0_06


cthulhu% ./pybench.py
-------------------------------------------------------------------------------
PYBENCH 2.0
-------------------------------------------------------------------------------
* Python version doesn't support gc.disable
* Python version doesn't support sys.setcheckinterval
* using timer: time.time

Calibrating tests. Please wait... done.

Running 10 round(s) of the suite at warp factor 10:

* Round 1 done in 15.507 seconds.
* Round 2 done in 13.738 seconds.
* Round 3 done in 9.633 seconds.
* Round 4 done in 8.087 seconds.
* Round 5 done in 7.980 seconds.
* Round 6 done in 7.784 seconds.
* Round 7 done in 7.727 seconds.
* Round 8 done in 7.729 seconds.
* Round 9 done in 7.743 seconds.
* Round 10 done in 7.668 seconds.

-------------------------------------------------------------------------------
Benchmark: 2008-07-02 22:41:31
-------------------------------------------------------------------------------

    Rounds: 10
    Warp:   10
    Timer:  time.time

Test                             minimum  average  operation  overhead
-------------------------------------------------------------------------------
          BuiltinFunctionCalls:     36ms     69ms    0.14us    0.500ms
           BuiltinMethodLookup:     72ms    124ms    0.12us    0.550ms
                 CompareFloats:     38ms     74ms    0.06us    0.650ms
         CompareFloatsIntegers:     69ms     95ms    0.11us    0.500ms
               CompareIntegers:     62ms     96ms    0.05us    0.950ms
        CompareInternedStrings:       2.75us    0.300ms
       CreateStringsWithConcat:    151ms    176ms    0.18us    0.550ms
       CreateUnicodeWithConcat:     69ms     85ms    0.21us    0.200ms
                  DictCreation:    556ms    607ms    1.52us    0.200ms
             DictWithFloatKeys:     97ms    132ms    0.15us    0.400ms
           DictWithIntegerKeys:     81ms    101ms    0.08us    0.550ms
            DictWithStringKeys:     88ms    110ms    0.09us    0.550ms
                      ForLoops:     88ms    137ms    5.50us    0.000ms
                    IfThenElse:    350ms    353ms    0.26us    0.400ms
                   ListSlicing:     46ms     56ms    4.02us    0.050ms
                NestedForLoops:     87ms     93ms    0.06us    0.000ms
          NormalClassAttribute:     99ms    140ms    0.12us    0.250ms
       NormalInstanceAttribute:     92ms    135ms    0.11us    0.250ms
           PythonFunctionCalls:     88ms    132ms    0.40us    0.150ms
             PythonMethodCalls:    109ms    149ms    0.66us    0.100ms
                     Recursion:    125ms    131ms    2.61us    0.250ms
                  SecondImport:    125ms    145ms    1.45us    0.100ms
           SecondPackageImport:    133ms    141ms    1.41us    0.100ms
         SecondSubmoduleImport:    210ms    218ms    2.18us    0.100ms
       SimpleComplexArithmetic:     52ms     99ms    0.11us    0.200ms
        SimpleDictManipulation:     87ms    148ms    0.12us    0.250ms
         SimpleFloatArithmetic:     56ms    137ms    0.10us    0.300ms
      SimpleIntFloatArith    130ms    0.11us    0.250ms
                StringMappings:    213ms    228ms    0.90us    0.250ms
              StringPredicates:     82ms    110ms    0.16us    0.700ms
                 StringSlicing:     51ms     77ms    0.14us    0.450ms
                     TryExcept:      3ms     14ms    0.01us    0.400ms
                TryRaiseExcept:    651ms    691ms   10.79us    0.200ms
                  TupleSlicing:     78ms    126ms    0.48us    0.050ms
               UnicodeMappings:    163ms    181ms    5.02us    0.400ms
             UnicodePredicates:     66ms    107ms    0.20us    0.950ms
                UnicodeSlicing:   1355ms   1387ms    2.83us    0.400ms
-------------------------------------------------------------------------------
Totals:                           7600ms   9359ms





Using Python:
=============

Python 2.4.4 (#1, May 19 2008, 02:13:30) [C] on sunos5


cthulhu% ./pybench.py
-------------------------------------------------------------------------------
PYBENCH 2.0
-------------------------------------------------------------------------------
* disabled garbage collection
* system check interval set to maximum: 2147483647
* using timer: time.time

Calibrating tests. Please wait... done.

Running 10 round(s) of the suite at warp factor 10:

* Round 1 done in 6.896 seconds.
* Round 2 done in 6.803 seconds.
* Round 3 done in 6.814 seconds.
* Round 4 done in 6.774 seconds.
* Round 5 done in 6.797 seconds.
* Round 6 done in 6.801 seconds.
* Round 7 done in 6.776 seconds.
* Round 8 done in 6.761 seconds.
* Round 9 done in 6.766 seconds.
* Round 10 done in 6.833 seconds.

--------0.11us    0.217ms
                 CompareFloats:     87ms     87ms    0.07us    0.249ms
         CompareFloatsIntegers:    101ms    102ms    0.11us    0.186ms
               CompareIntegers:     78ms     78ms    0.04us    0.373ms
        CompareInternedStrings:    128ms    130ms    0.09us    0.940ms
                  CompareLongs:     90ms     91ms    0.09us    0.215ms
                CompareStrings:     97ms     98ms    0.10us    0.627ms
                CompareUnicode:    102ms    103ms    0.14us    0.477ms
                 ConcatStrings:    166ms    177ms    0.35us    0.415ms
                 ConcatUnicode:    124ms    139ms    0.46us    0.296ms
               CreateInstances:    169ms    170ms    1.52us    0.252ms
            CreateNewInstances:    148ms    149ms    1.77us    0.251ms
       CreateStringsWithConcat:    124ms    124ms    0.12us    0.616ms
       CreateUnicodeWithConcat:    172ms    175ms    0.44us    0.246ms
                  DictCreation:     96ms     98ms    0.25us    0.246ms
             DictWithFloatKeys:    163ms    164ms    0.18us    0.459ms
           DictWithIntegerKeys:    103ms    104ms    0.09us    0.616ms
            DictWithStringKeys:     88ms     90ms    0.08us    0.616ms
                      ForLoops:     66ms     66ms    2.66us    0.058ms
                    IfThenElse:     69ms     69ms    0.05us    0.466ms
                   ListSlicing:     68ms     69ms    4.90us    0.067ms
                NestedForLoops:     95ms     96ms    0.06us    0.020ms
          NormalClassAttrib  128ms    1.28us    0.123ms
       SimpleComplexArithmetic:    153ms    154ms    0.18us    0.248ms
        SimpleDictManipulation:    150ms    153ms    0.13us    0.311ms
         SimpleFloatArithmetic:    107ms    108ms    0.08us    0.369ms
      SimpleIntFloatArithmetic:     83ms     83ms    0.06us    0.371ms
       SimpleIntegerArithmetic:     82ms     83ms    0.06us    0.372ms
        SimpleListManipulation:    139ms    139ms    0.12us    0.403ms
          SimpleLongArithmetic:    133ms    134ms    0.20us    0.214ms
                    SmallLists:    169ms    170ms    0.25us    0.247ms
                   SmallTuples:    142ms    143ms    0.26us    0.277ms
         SpecialClassAttribute:    112ms    113ms    0.09us    0.311ms
      SpecialInstanceAttribute:    181ms    183ms    0.15us    0.310ms
                StringMappings:    134ms    134ms    0.53us    0.347ms
              StringPredicates:    206ms    206ms    0.29us    1.659ms
                 StringSlicing:    167ms    168ms    0.30us    0.546ms
 ---------------------------------------------------------------
Totals:                           6691ms   6802ms



PyBench is Revision 64668: /python/trunk/Tools/pybench

http://svn.python.org/projects/python/trunk/Tools/pybench/




svn patch for PyBench (port to Jython):

Index: pybench.py
===================================================================
--- pybench.py    (revision 64668)
+++ pybench.py    (working copy)
<at> <at> -1,4 +1,4 <at> <at>
-#!/usr/local/bin/python -O
+#!/usr/local/bin/python
 
 """ A Python Benchmark Suite
 
<at> <at> -34,7 +34,7 <at> <at>
 WITH THE USE OR PERFORMANCE OF THIS SOFTWARE !
 """
 
-import sys, time, operator, string, platform
+import sys, time, operator, string
 from CommandLine import *
 
 try:
<at> <at> -100,55 +100,7 <at> <at>
     else:
         raise TypeError('unknown timer type: %s' % timertype)
 
-def get_machine_details():
 
-    if _debug:
-        print 'Getting machine details...'
-    buildno, builddate = platform.python_build()
-    python = platform.python_version()
-    try:
-        unichr(100000)
-    except ValueError:
-        # UCS2 build (standard)
-        unicode = 'UCS2'
-    except NameError:
-        unicode = None
-    else:
-        # UCS4 build (most recent Linux distros)
-        unicode = 'UCS4'
-    bits, linkage = platform.architecture()
-    return {
-        'platform': platform.platform(),
-        'processor': platform.processor(),
-        'executable': sys.executable,
-        'implementation': getattr(platform, 'python_implementation',
-                                  lambda:'n/a')(),
-        'python': platform.python_version(),
-        'compiler': platform.python_compiler(),
-        'buildno': buildno,
-        'builddate': builddate,
-        'unicode': unicode,
-        'bits': bits,
-        }
-
-def print_machine_details(d, indent=''):
-
-    l = ['Machine Details:',
-         '   Platform ID:    %s' % d.get('platform', 'n/a'),
-         '   Processor:      %s' % d.get('processor', 'n/a'),
-         '',
-         'Python:',
-         '   Implementation: %s' % d.get('implementation', 'n/a'),
-         '   Executable:     %s' % d.get('executable', 'n/a'),
-         '   Version:        %s' % d.get('python', 'n/a'),
-         '   Compiler:       %s' % d.get('compiler', 'n/a'),
-         '   Bits:           %s' % d.get('bits', 'n/a'),
-         '   Build:          %s (#%s)' % (d.get('builddate', 'n/a'),
-                                          d.get('buildno', 'n/a')),
-         '   Unicode:        %s' % d.get('unicode', 'n/a'),
-         ]
-    print indent + string.join(l, '\n' + indent) + '\n'
-
 ### Test baseclass
 
 class Test:
<at> <at> -438,7 +390,6 <at> <at>
         self.tests = {}
         if _debug:
             print 'Getting machine details...'
-        self.machine_details = get_machine_details()
 
         # Make .version an instance attribute to have it saved in the
         # Benchmark pickle
<at> <at> -457,17 +408,6 <at> <at>
             compatible with the other Benchmark instance or not.
 
         """
-        if self.version != other.version:
-            return 0
-        if (self.machine_details == other.machine_details and
-            self.timer != other.timer):
-            return 0
-        if (self.calibration_runs == 0 and
-            other.calibration_runs != 0):
-            return 0
-        if (self.calibration_runs != 0 and
-            other.calibration_runs == 0):
-            return 0
         return 1
 
     def load_tests(self, setupmod, limitnames=None):
<at> <at> -593,9 +533,6 <at> <at>
         print '    Warp:   %s' % self.warp
         print '    Timer:  %s' % self.timer
         print
-        if self.machine_details:
-            print_machine_details(self.machine_details, indent='    ')
-            print
 
     def print_benchmark(self, hidenoise=0, limitnames=None):
 
<at> <at> -838,9 +775,6 <at> <at>
         print '-' * LINE
         print 'PYBENCH %s' % __version__
         print '-' * LINE
-        print '* using %s %s' % (
-            getattr(platform, 'python_implementation', lambda:'Python')(),
-            string.join(string.split(sys.version), ' '))
 
         # Switch off garbage collection
         if not withgc:



Platform information:
--------------------

cthulhu% prtdiag 
System Configuration: Acer, inc. Aspire 5920G   
BIOS Configuration: Acer    v0.3508 05/22/2007


Core 2 Duo T7300 <at> 2Ghz, 4MB Cache
2GB DDR 667


cthulhu% uname -a
SunOS cthulhu 5.11 snv_91 i86pc i386 i86pc
cthulhu% cat /etc/release
                   Solaris Express Community Edition snv_91 X86
           Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                             Assembled 03 June 2008

--
Criveti Mihai
http://unixsadm.blogspot.com
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Jython-users mailing list
Jython-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users
Kyle Quinnell | 3 Jul 12:36
Picon
Favicon

Graphical Jython Debugger

For my own needs (and CS Masters Project) I have created a graphical Jython debugger.  It's currently in
Alpha/Beta stage.  It can work with standalone python scripts and also embedded Jython.  It does the basic
debugger stuff such as Conditional Breakpoints, Step, Step Into, Continue, Pause, variable viewer as
well code coverage.  Let me know if anybody is interested and I will post a link.

Thanks,

Kyle

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
josu jugo | 3 Jul 14:53
Picon
Picon

Re: Graphical Jython Debugger

Hi

I am very interested. Please, can you post  it?

Thank you in advance

josu

El 03/07/2008, a las 12:36, Kyle Quinnell escribió:

> For my own needs (and CS Masters Project) I have created a graphical  
> Jython debugger.  It's currently in Alpha/Beta stage.  It can work  
> with standalone python scripts and also embedded Jython.  It does  
> the basic debugger stuff such as Conditional Breakpoints, Step, Step  
> Into, Continue, Pause, variable viewer as well code coverage.  Let  
> me know if anybody is interested and I will post a link.
>
> Thanks,
>
> Kyle
>
>
>
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Jython-users mailing list
> Jython-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jython-users

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Leo Soto M. | 3 Jul 15:50
Picon
Gravatar

Re: Graphical Jython Debugger

On Thu, Jul 3, 2008 at 6:36 AM, Kyle Quinnell <kquinnell <at> yahoo.com> wrote:
> For my own needs (and CS Masters Project) I have created a graphical Jython debugger.
> It's currently in Alpha/Beta stage. It can work with standalone python scripts and also
> embedded Jython.  It does the basic debugger stuff such as Conditional Breakpoints, Step,
> Step Into, Continue, Pause, variable viewer as well code coverage.  Let me know if anybody
> is interested and I will post a link.

Sure, please do it :)
--

-- 
Leo Soto M.
http://blog.leosoto.com

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Kyle Quinnell | 3 Jul 17:32
Picon
Favicon

Re: Graphical Jython Debugger

Link to the jython debugger:

http://home.comcast.net/~kyle.quinnell/

Let me know how it works.  I don't know how much time I will have for bug fixes.  I just wanted to get it out there
and give people the opportunity to start using it.

Thanks for your interest,

Kyle

--- On Thu, 7/3/08, Leo Soto M. <leo.soto <at> gmail.com> wrote:

> From: Leo Soto M. <leo.soto <at> gmail.com>
> Subject: Re: [Jython-users] Graphical Jython Debugger
> To: kquinnell <at> yahoo.com
> Cc: jython-users <at> lists.sourceforge.net
> Date: Thursday, July 3, 2008, 6:50 AM
> On Thu, Jul 3, 2008 at 6:36 AM, Kyle Quinnell
> <kquinnell <at> yahoo.com> wrote:
> > For my own needs (and CS Masters Project) I have
> created a graphical Jython debugger.
> > It's currently in Alpha/Beta stage. It can work
> with standalone python scripts and also
> > embedded Jython.  It does the basic debugger stuff
> such as Conditional Breakpoints, Step,
> > Step Into, Continue, Pause, variable viewer as well
> code coverage.  Let me know if anybody
> > is interested and I will post a link.
> 
> Sure, please do it :)
> -- 
> Leo Soto M.
> http://blog.leosoto.com

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Ivan Horvath | 3 Jul 17:51
Picon

Re: Graphical Jython Debugger

Dear Kyle,

i've received this exception:
what version of jre is necessary?

D:\jythondebugger>Debugger.bat

D:\jythondebugger>java -cp jython.jar;jythondebugger.jar jythondebugger.ScriptMa
nagerFrame
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/swi
ng/RowSorter
        at jythondebugger.ScriptManagerFrame.C(Unknown Source)
        at jythondebugger.ScriptManagerFrame.<init>(Unknown Source)
        at jythondebugger.ScriptManagerFrame$21.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

D:\jythondebugger>

On Thu, Jul 3, 2008 at 5:32 PM, Kyle Quinnell <kquinnell <at> yahoo.com> wrote:
Link to the jython debugger:

http://home.comcast.net/~kyle.quinnell/

Let me know how it works.  I don't know how much time I will have for bug fixes.  I just wanted to get it out there and give people the opportunity to start using it.

Thanks for your interest,

Kyle


--- On Thu, 7/3/08, Leo Soto M. <leo.soto <at> gmail.com> wrote:

> From: Leo Soto M. <leo.soto <at> gmail.com>
> Subject: Re: [Jython-users] Graphical Jython Debugger
> To: kquinnell <at> yahoo.com
> Cc: jython-users <at> lists.sourceforge.net
> Date: Thursday, July 3, 2008, 6:50 AM
> On Thu, Jul 3, 2008 at 6:36 AM, Kyle Quinnell
> <kquinnell <at> yahoo.com> wrote:
> > For my own needs (and CS Masters Project) I have
> created a graphical Jython debugger.
> > It's currently in Alpha/Beta stage. It can work
> with standalone python scripts and also
> > embedded Jython.  It does the basic debugger stuff
> such as Conditional Breakpoints, Step,
> > Step Into, Continue, Pause, variable viewer as well
> code coverage.  Let me know if anybody
> > is interested and I will post a link.
>
> Sure, please do it :)
> --
> Leo Soto M.
> http://blog.leosoto.com




-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Jython-users mailing list
Jython-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users



--
"De sagittis hungarorum libera nos, Domine!" - "A magyarok nyilaitól ments meg Uram minket!"

http://www.freeweb.hu/pillesoft
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Jython-users mailing list
Jython-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users
Kyle Quinnell | 3 Jul 18:51
Picon
Favicon

Re: Graphical Jython Debugger

Sorry.  I should have mentioned that it requires Java 1.6.

Kyle

--- On Thu, 7/3/08, Ivan Horvath <pillesoft <at> gmail.com> wrote:

> From: Ivan Horvath <pillesoft <at> gmail.com>
> Subject: Re: [Jython-users] Graphical Jython Debugger
> To: kquinnell <at> yahoo.com
> Cc: jython-users <at> lists.sourceforge.net
> Date: Thursday, July 3, 2008, 8:51 AM
> Dear Kyle,
> 
> i've received this exception:
> what version of jre is necessary?
> 
> D:\jythondebugger>Debugger.bat
> 
> D:\jythondebugger>java -cp
> jython.jar;jythondebugger.jar
> jythondebugger.ScriptMa
> nagerFrame
> Exception in thread "AWT-EventQueue-0"
> java.lang.NoClassDefFoundError:
> javax/swi
> ng/RowSorter
>         at jythondebugger.ScriptManagerFrame.C(Unknown
> Source)
>         at
> jythondebugger.ScriptManagerFrame.<init>(Unknown
> Source)
>         at jythondebugger.ScriptManagerFrame$21.run(Unknown
> Source)
>         at java.awt.event.InvocationEvent.dispatch(Unknown
> Source)
>         at java.awt.EventQueue.dispatchEvent(Unknown
> Source)
>         at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
> Source)
> 
>         at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
> Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown
> Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown
> Source)
>         at java.awt.EventDispatchThread.run(Unknown Source)
> 
> D:\jythondebugger>
> 
> On Thu, Jul 3, 2008 at 5:32 PM, Kyle Quinnell
> <kquinnell <at> yahoo.com> wrote:
> 
> > Link to the jython debugger:
> >
> >
> http://home.comcast.net/~kyle.quinnell/<http://home.comcast.net/%7Ekyle.quinnell/>
> >
> > Let me know how it works.  I don't know how much
> time I will have for bug
> > fixes.  I just wanted to get it out there and give
> people the opportunity to
> > start using it.
> >
> > Thanks for your interest,
> >
> > Kyle
> >
> >
> > --- On Thu, 7/3/08, Leo Soto M.
> <leo.soto <at> gmail.com> wrote:
> >
> > > From: Leo Soto M. <leo.soto <at> gmail.com>
> > > Subject: Re: [Jython-users] Graphical Jython
> Debugger
> > > To: kquinnell <at> yahoo.com
> > > Cc: jython-users <at> lists.sourceforge.net
> > > Date: Thursday, July 3, 2008, 6:50 AM
> > > On Thu, Jul 3, 2008 at 6:36 AM, Kyle Quinnell
> > > <kquinnell <at> yahoo.com> wrote:
> > > > For my own needs (and CS Masters Project) I
> have
> > > created a graphical Jython debugger.
> > > > It's currently in Alpha/Beta stage. It
> can work
> > > with standalone python scripts and also
> > > > embedded Jython.  It does the basic debugger
> stuff
> > > such as Conditional Breakpoints, Step,
> > > > Step Into, Continue, Pause, variable viewer
> as well
> > > code coverage.  Let me know if anybody
> > > > is interested and I will post a link.
> > >
> > > Sure, please do it :)
> > > --
> > > Leo Soto M.
> > > http://blog.leosoto.com
> >
> >
> >
> >
> >
> -------------------------------------------------------------------------
> > Sponsored by: SourceForge.net Community Choice Awards:
> VOTE NOW!
> > Studies have shown that voting for your favorite open
> source project,
> > along with a healthy diet, reduces your potential for
> chronic lameness
> > and boredom. Vote Now at
> http://www.sourceforge.net/community/cca08
> > _______________________________________________
> > Jython-users mailing list
> > Jython-users <at> lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/jython-users
> >
> 
> 
> 
> -- 
> "De sagittis hungarorum libera nos, Domine!" -
> "A magyarok nyilaitól ments
> meg Uram minket!"
> 
> http://www.freeweb.hu/pillesoft

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Favicon

Hide unwanted commons logging trace?

Hi all,
 
I am using htmlunit as part of my project and I want to disable the log messages it prints to my command line whenever I load a web page (usually ones with Javascript are the most verbose).
 
The example:
 
from com.gargoylesoftware.htmlunit import *
w = WebClient(BrowserVersion.FIREFOX_2)
w.getPage('http://maps.google.com')
 
Generates the output:
07-Jul-2008 14:18:44 com.gargoylesoftware.htmlunit.javascript.host.Document jsxSet_cookie
INFO: Added cookie: testcookie=1
07-Jul-2008 14:18:44 com.gargoylesoftware.htmlunit.javascript.host.Document jsxSet_cookie
INFO: Added cookie: testcookie=
07-Jul-2008 14:18:44 com.gargoylesoftware.htmlunit.javascript.host.Document jsxSet_cookie
INFO: Added cookie: khcookie=fzwq2gh2pz1eDnO5bRamCTbugf_q4fmi-ww4Hg
Exception in declaration()
HtmlPage(http://maps.google.com) <at> 5602395
 
The project uses the commons logging package, and I haven't a clue how to disable the output. Can anybody help?
 
Regards,
 
Gareth
 
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Jython-users mailing list
Jython-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users
Moore, Greg | 8 Jul 17:55
Picon
Favicon

Re: Hide unwanted commons logging trace?

Since they are all based on the same components, take a look at
http://hc.apache.org/httpclient-3.x/logging.html or
http://hc.apache.org/httpclient-3.x/troubleshooting.html 

Hth,

Greg.

From: jython-users-bounces <at> lists.sourceforge.net
[mailto:jython-users-bounces <at> lists.sourceforge.net] On Behalf Of DOUTCH
GARETH-GDO003
Sent: Monday, July 07, 2008 6:25 AM
To: jython-users <at> lists.sourceforge.net
Subject: [Jython-users] Hide unwanted commons logging trace?

Hi all,

I am using htmlunit as part of my project and I want to disable the log
messages it prints to my command line whenever I load a web page
(usually ones with Javascript are the most verbose).

The example:

from com.gargoylesoftware.htmlunit import *

w = WebClient(BrowserVersion.FIREFOX_2)
w.getPage('http://maps.google.com')

Generates the output:

07-Jul-2008 14:18:44
com.gargoylesoftware.htmlunit.javascript.host.Document jsxSet_cookie
INFO: Added cookie: testcookie=1
07-Jul-2008 14:18:44
com.gargoylesoftware.htmlunit.javascript.host.Document jsxSet_cookie
INFO: Added cookie: testcookie=
07-Jul-2008 14:18:44
com.gargoylesoftware.htmlunit.javascript.host.Document jsxSet_cookie
INFO: Added cookie: khcookie=fzwq2gh2pz1eDnO5bRamCTbugf_q4fmi-ww4Hg
Exception in declaration()
HtmlPage(http://maps.google.com)@5602395

The project uses the commons logging package, and I haven't a clue how
to disable the output. Can anybody help?

http://htmlunit.sourceforge.net/ <http://htmlunit.sourceforge.net/> 

Regards,

Gareth

This message and any attachments are intended only for the use of the addressee and may contain information
that is privileged and confidential. If the reader of the message is not the intended recipient or an
authorized representative of the intended recipient, you are hereby notified that any dissemination of
this communication is strictly prohibited. If you have received this communication in error, please
notify us immediately by e-mail and delete the message and any attachments from your system.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Jython-users mailing list
Jython-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users

Gmane