Benchmarking the system/CPU performance

2012-01-15 2 min read Bash Fedora Learning

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), amit.agarwal@roamware.com
#       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 :

Continue reading

autoten- install nvidia, gnome color chooser and many others in one click on Fedora.

2010-07-18 1 min read Fedora

There is a application/GUI called autoten from Dangermouse, find <a href="http://dnmouse.org/autoten-2-12.fc10.noarch.rpm ">here, which will help you install these.

  • designed to help get basics up and running fast
  • dvdplayback plus other codecs needed
  • parental controls
  • flash plugin
  • video card drivers
  • wireless drivers
  • set up sudo
  • java 6u7
  • realplayer
  • googleearth
  • frostwire
  • Limewire
  • lightscribe
  • compiz-fusion
  • skype
  • parental controls
  • plus many others

I tried it to install couple of things and it was a breeze. Here is a screenshot of the application.

Continue reading

Fixing the Xorg X server after removing nouveau and nvidia and installing a nVidia graphics card.

2010-06-22 2 min read Fedora Linux

I updated my destop configuration recently, well thats not the news. But I was a idiot doing certain things at that time might be something interesting to my readers. I got a <a class="zem_slink freebase/en/nvidia" title="Nvidia" rel="geolocation" href="http://maps.google.com/maps?ll=37.3707277778,-121.963738889&spn=0.01,0.01&q=37.3707277778,-121.963738889%20%28Nvidia%29&t=h">nVidia <a class="zem_slink freebase/en/video_card" title="Video card" rel="wikipedia" href="http://en.wikipedia.org/wiki/Video_card">graphics card, that was not the issue but I uninstalled the drivers for it after putting it in was the issue.

So, here is the story and the fix.

Continue reading

Configuration of my home desktop - updated

2010-06-11 1 min read Uncategorized

Here is the list of components of my Desktop :

<a class="zem_slink freebase/en/nvidia" title="Nvidia" rel="geolocation" href="http://maps.google.com/maps?ll=37.3707277778,-121.963738889&spn=0.01,0.01&q=37.3707277778,-121.963738889%20%28Nvidia%29&t=h">nVidia Corporation G96 [<a class="zem_slink" title="GeForce" rel="homepage" href="http://www.nvidia.com/object/geforce_family.html">GeForce 9500 GT] (rev a1) with 1GB

<a class="zem_slink freebase/en/intel_corporation" title="Intel Corporation" rel="geolocation" href="http://maps.google.com/maps?ll=37.3879277778,-121.963538889&spn=0.01,0.01&q=37.3879277778,-121.963538889%20%28Intel%20Corporation%29&t=h">Intel(R) <a class="zem_slink freebase/en/intel_core_microarchitecture" title="Intel Core (microarchitecture)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Intel_Core_%28microarchitecture%29">Core(TM) i5 CPU         650  @ 3.20GHz with 6 core

Transcend JM1333KLU-2G @ 1333MHz  – totalling 4 GB of <a class="zem_slink freebase/en/ddr3_sdram" title="DDR3 SDRAM" rel="wikipedia" href="http://en.wikipedia.org/wiki/DDR3_SDRAM">DDR3 RAM

22 inch BENQ <a class="zem_slink freebase/en/liquid_crystal_display" title="LCD" rel="wikinvest" href="http://www.wikinvest.com/concept/LCD">LCD monitor

Continue reading