Benchmarking the system/CPU performance

Have you ever wanted to have a quick check on your CPU performance. I know that lot of people will say that this is not the right way to do this, but here is something that you can use to check the CPU speed.

#!/bin/bash -
#===============================================================================
#
#          FILE:  benchmark.sh
#
#         USAGE:  ./benchmark.sh
#
#   DESCRIPTION:  Benchmark the CPU
#
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR: Amit Agarwal (aka), [email protected]
#       COMPANY: Roamware India Pvt Ltd
#       CREATED: 09/21/2011 11:46:03 AM IST
# Last modified: Wed Sep 21, 2011  12:22PM
#      REVISION:  ---
#===============================================================================

add ()
{
    COUNTER=0
    exec 2>&1
    time=$(exec 2>&1;(time while [[  $COUNTER -lt 100000 ]]; do ((COUNTER++)) \
        ; done))
    echo "Time for 100000 additions is "$time
}	# ----------  end of function add  ----------
mul ()
{
    COUNTER=0
    test=2
    exec 2>&1
    time=$(exec 2>&1;(time while [[  $COUNTER -lt 100000 ]]; do ((COUNTER++)) \
        ; ((test=test*2));done))
    echo "Time for 100000 mul is "$time
}	# ----------  end of function add  ----------
div ()
{
    COUNTER=0
    test=1000000000000
    exec 2>&1
    time=$(exec 2>&1;(time while [[  $COUNTER -lt 100000 ]]; do ((COUNTER++)) \
        ; (( test=test/2)); done)|tr -d '\n')
    echo "Time for 100000 divisions is "${time}
}	# ----------  end of function add  ----------

time add
time mul
time div

And here is the output :

Time for 100000 additions is  real 0m1.166s user 0m1.089s sys 0m0.074s

real    0m1.168s
user    0m1.089s
sys    0m0.074s
Time for 100000 mul is  real 0m1.862s user 0m1.778s sys 0m0.082s

real    0m1.863s
user    0m1.779s
sys    0m0.082s
Time for 100000 divisions is  real 0m1.916s user 0m1.825s sys 0m0.089s

real    0m1.918s
user    0m1.825s
sys    0m0.090s

Enhanced by Zemanta

30 Best Windows Mobile Applications

30 Best Windows Mobile Applications

33 Comments »
Share inShare

The main reason why people still love window mobile is because of its freeware applications and excellent add-ons. Windows Mobile users carry great access to third party applications than any other Mobile Operating system in the market. At the same time it might be confusing for the user to settle on which window mobile apps to download. So we at honeytechblog did a search and have compiled a list of Top 30 Best window mobile applications. These applications will ensure following features such as networking, themes, tools for tweak, music players, newsreaders, Internet browser, document manager and much more.

1. Facebook

The famous social networks is now a mobile application updated with latest news and posts.

facebook 30 Best Windows Mobile Applications

2. TwitToday

Twitter is one of the popular micro blogging site and all the twitter activities can be controlled with this windows application. Once it is added, a textbox is displayed into the screen.

Twittoday 30 Best Windows Mobile Applications

3. NET Compact Framework

Almost all applications in the mobile require .NET framework. This application has all the required libraries and the language required for .NET framework.

NET Compact Framework 30 Best Windows Mobile Applications

4. Viigo

This is a RSS feed that offers instant access to all favorite blogs, news, entertainment, finance, weather, reviews, games and much more.

More ..

Enhanced by Zemanta

Blogging from N900

English: Nokia N900 communicator/internet tabl...
Image via Wikipedia

Can´t get simpler than this. Just install the application called wordpress in your N900, and punch in the details for your blog along with your admin login and password and you have a amazing wordpress client. You can even add photos like the one below:

N900 and its applications keep me amazed and happy 🙂

Enhanced by Zemanta