[Python-Dev] GIL behaviour under Windows (original) (raw)
Kristján Valur Jónsson kristjan at ccpgames.com
Wed Oct 21 15:24:15 CEST 2009
- Previous message: [Python-Dev] GIL behaviour under Windows
- Next message: [Python-Dev] GIL behaviour under Windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----Original Message----- Could you try ccbench (*) under Windows? The only Windows system I have here is a qemu virtual machine and it wouldn't be very realistic to do concurrency measurements on it.
I´ve run it twice on my dual core machine. It hangs every time, but not in the same place: D:\pydev\python\trunk\PCbuild>python.exe \tmp\ccbench.py malloc 262144 gave 262144, diff 0 malloc 262144 gave 262144, diff 0 malloc 262144 gave 262144, diff 0 malloc 262144 gave 262144, diff 0 malloc 262144 gave 262144, diff 0 malloc 262144 gave 262144, diff 0 --- Throughput ---
Pi calculation (Python)
threads=1: 514 iterations/s. threads=2: 403 ( 78 %) threads=3: 392 ( 76 %) threads=4: 364 ( 70 %)
regular expression (C)
threads=1: 443 iterations/s. threads=2: 474 ( 106 %) threads=3: 461 ( 104 %) threads=4: 466 ( 105 %)
SHA1 hashing (C)
threads=1: 983 iterations/s. threads=2: 1026 ( 104 %) ^C D:\pydev\python\trunk\PCbuild>python.exe \tmp\ccbench.py malloc 262144 gave 262144, diff 0 malloc 262144 gave 262144, diff 0 malloc 262144 gave 262144, diff 0 malloc 262144 gave 262144, diff 0 --- Throughput ---
Pi calculation (Python)
threads=1: 506 iterations/s. threads=2: 405 ( 80 %)
- Previous message: [Python-Dev] GIL behaviour under Windows
- Next message: [Python-Dev] GIL behaviour under Windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]