Content  


Benchmarking at Application Level

In the following, benchmarking at application level is explained. All parameters supplied to the viennaprofiler standalone executable are run. In the following, we consider benchmarking the echo command. This is, of course, for demonstration purposes only. Typically, much larger statements are benchmarked.

With database connection

When writing benchmark results directly to the database, the correct host has to be specified. In order to avoid problems with lower- and upper-case host names, the program aborts if the supplied host name cannot be found.

standalone application with database connection
$> cd /your-ViennaProfiler-path/build/ ./viennaprofiler echo "hello"
--- ViennaProfiler 1.0.0, (C) 2010, Institute for Microelectronics, TU Wien ---
Available output types:
  (1) Direct MySQL connection
  (2) Dump to file (import manually into webinterface)
Your choice: 1
Enter hostname: myHostName
Enter MySQL database host (IP or hostname): localhost
Enter MySQL database name: vprof
Enter MySQL user: vprof
Enter MySQL password for 'vprof': vprof
Enter name of collection: echo (db)
Enter name of function (functionality): hello
Enter name of implementation: OS implementation
Enter number of operations (0 to disable GFLOPs calculation): 0
Enter number of runs: 10
$> _

Without database connection

For hosts without direct connection to the database, results can be stored in a user-defined file and later imported into the web interface.

standalone without database connection
$> cd /your-ViennaProfiler-path/build/ ./viennaprofiler echo "hello"
--- ViennaProfiler 1.0.0, (C) 2010, Institute for Microelectronics, TU Wien ---
Available output types:
  (1) Direct MySQL connection
  (2) Dump to file (import manually into webinterface)
Your choice: 2
Enter file name: test.sql
Enter name of collection: echo (file)
Enter name of function (functionality): hello
Enter name of implementation: OS implementation
Enter number of operations (0 to disable GFLOPs calculation): 0
Enter number of runs: 10
$> _

Using Pipes for Providing Parameters

Using pipes is a possibility to automate the usage of ./viennaprofiler (or viennaprofiler.exe in Windows). First of all you have to create a file containing one input parameter per line. The input file looks like:

input file
1
myHostName
localhost
vprof
vprof
vprof
echo (db)
hello
OS implementation
0
10

NOTE: The input file needs to end with a blank line!


Now ./viennaprofiler (or viennaprofiler.exe in Windows) can be called.