source: proiecte/swift/trunk/bin/test_stack_fibo.sh @ 176

Last change on this file since 176 was 176, checked in by (none), 14 years ago
  • imported repo from "guagal"
File size: 525 bytes
Line 
1#!/bin/bash
2
3#
4# Tests for fibo() with stack allocation for the frames and private data
5# have a modified swift_scheduler -> swift_free() where no deallocation
6# occurs because we had stack allocation
7#
8
9if test $# -lt 2; then
10        echo "usage: $0 N NTHREADS"
11        exit 0
12fi
13
14N=$1
15NTHREADS=$2
16TIME=/usr/bin/time
17
18echo "N=$N NTHREADS=$NTHREADS"
19
20$TIME -f "Time for   serial: real=%e user=%U sys=%S" ./test/fibo_serial $N
21$TIME -f "Time for parallel (2 spawns on stack): real=%e user=%U sys=%S" ./test/fibo_stack_2spawns $NTHREADS $N
22
Note: See TracBrowser for help on using the repository browser.