Pages

Showing posts with label windows 7. Show all posts
Showing posts with label windows 7. Show all posts

Wednesday, August 3, 2011

Comparing the PROC & RAM performance of Ubuntu 11.04 with Windows 7

My Rig Thinkpad T420 41785ZA detail spec just google it, the only different just the RAM configuration 2 x 4GB

Comparing processor and memory perfomance using Geekbench2.1.13 in Windows 7 and Ubuntu. Only use Geekbench the 32 bit version (because the 64bit cost $19.99).

Detailed running schema + result:

Also i test it using commonly programming language(python + mpmath with gmpy) i used:
-The configuration and detailed python spec: (Click the image to view it bigger)
windows 7

ubuntu 11.04

-The Running time i give it try to run several times(executed +-5times, to see the best result, and give python(mpmath module) a chance to load(cached) into RAM)
windows 7

ubuntu 11.04

Monday, June 27, 2011

Arbitrary Precision using Python Mpmath

Mpmath is great, powerful and easy to use to calculating equation that involve floating point.
I found several article that could be used to find minimal setting for arbitrary precision, enough the chat, let my code do the talk..

Software that used:
  • python ver 2.6.5 in ubuntu 10.04 64 bit
  • python EPD(Enthought Python Distribution) ver 7.0-2 32 bit in windows 7 64 bit, no default mpmath installation under python epd, but its available via sympy(included ver 0.14 mpmath)
  • python mpmath ver 0.17, http://code.google.com/p/mpmath/
  • gmpy -> python binding for GMP
  • sage version 4.7 64bit for ubuntu10.04  http://www.sagemath.org/

Below are 2 equations that could be used for searching significant setting for mpmath arbitrary precision.
1. Interval Arithmetic: Python Implementation and Applications by Stefano Taschini in SciPy2008_proceedings.pdf
GMPY Backend

SAGE Backend


Python Backend


2. Why and how to use arbitrary precision by Kaveh R. Ghazi, Vincent Lefèvre, Philippe Théveny, Paul Zimmermann in cise.pdf
GMPY Backend




SAGE Backend


Python Backend



Conclusion
  • different BACKEND in mpmath did not effect in result and mpmath.mp context(setting for arbitrary precision), just gives an performance effect(sage faster, than gmpy, last python) 
  • mpmath prec value that could be gives most precision is not less than 128 bit (mpmath.mp.prec=128)
  • creating a mpf object is better to converted into string data type first( mp.mpf('0.1') or mp.mpf(str(0.1)))
  • better doing a arithmetic rational operation when possible see first code that solved using sympy

Saturday, May 14, 2011

Musing with booting time in Scientific Linux 6, Ubuntu Lucid, Windows 7


Just comparing in booting and login time between Scientific Linux 6, Ubuntu Lucid Lynx 10.04.2 LTS, Windows 7 Home Premium Service Pack 1, all system in 64 bit version.

All system already installed many software that can be used for daily activity like listening various audio formats, watching various video formats, office productivity, internet browsing, updated to the current version, installed in the same HDD(one laptop) with 4 partitions(Win 7, Ubuntu, SL, swap for Linux), development programs installed(C/C++ library, java SDK, python), converting audio/video(SL not).

Specific system configuration:
  • Ubuntu mostly installed by many programs(my primary workstation), i didn't tuned it at all. Installed since it alpha version and just doing upgrade until now version 10.04.2 LTS, using live CD version 64 bit.
  • SL only for fun and learning a red hat based distro. Installed from a 64 bit live DVD version.
  • Windows, i use it for other software that Ubuntu not had yet, like visio, wathing HD movie using ATI vga instead using the AMD processor. And it installed an Antivirus from Microsoft Security Essential cause it rarely false alarm, and firewall using windows default, i knew it could boot faster without it, but it will make me installing windows again and again, many non Microsoft programs turned off on startup like java server, matlab server, etc. This Windows already installed when i bought the laptop, urgh yikes :( , i wonder how much the cost reduced while it not included Windows 7 :p .

The tests result

Below is the code to draw the figure(bar chart comparison) above, using Python with matplotlib module

#!/usr/bin/python

from matplotlib.pylab import arange, bar, xticks, title, ylabel, grid, show, legend

# ubuntu, sl, win
ut = [39, 7, 6]; st = [50, 10, 13]; wt = [44, 122, 20]

idx = arange(3)
wdx = 0.25

grid()
ub = bar(idx, ut, wdx, color='orange')
sb = bar(idx+wdx, st, wdx, color='red')
wb = bar(idx+wdx+wdx, wt, wdx, color='blue')
legend((ub[0], sb[0], wb[0]), ('Ubuntu 10.04', 'SL 6', 'Windows 7'))

xticks(idx+wdx, ('Booting', 'Login', 'Shutdown'))
ylabel('time in seconds')
title('Less is better')
show()
My measurement procedure:
  • using stopwatch in Nokia N900 so my fingers reaction time are to be considered
  • all systems booted from grub2 provided by Ubuntu lucid
  • booting time measured from grub2 until it show login window
  • log on time measured from pressing enter(password already entered) in login window until it show desktop and ready to use(including the LED of HDD not blinking again), well i can use(open a program) while the LED still blinking but it took the same time just like i wait LED off then open a program(yes in this case only happened with windows 7)
  • just open an open office writer in all system, then close it
  • shutdown time measured from pressing shutdown until the laptop turned off.