Skip to content

Commit

Permalink
Use fast: true option in all benchmarks.
Browse files Browse the repository at this point in the history
This prevents get_physical_time from being invoked in the wait_until function in reactor_threaded.c. The overhead of that call to get_physical_time appears to be as much as 10% of total cycles in benchmarks like PingPong whose execution times are dominated by runtime overhead.
  • Loading branch information
petervdonovan committed Mar 19, 2022
1 parent d417f80 commit 9288ece
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 16 deletions.
3 changes: 2 additions & 1 deletion C/Savina/src/concurrency/Banking.lf
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
files: ["../include/PseudoRandom.h",
"/lib/c/reactor-c/util/deque.h",
"/lib/c/reactor-c/util/deque.c"],
logging: warn
logging: warn,
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/concurrency/BoundedBuffer.lf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ target C {
"/lib/c/reactor-c/util/deque.c",
"../include/PseudoRandom.h"],
flags: "-lm",
logging: "warn"
logging: "warn",
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/concurrency/CigaretteSmoker.lf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ target C {
]]] */
threading: false,
/// [[[end]]]
files: "../include/PseudoRandom.h"
files: "../include/PseudoRandom.h",
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/concurrency/Dictionary.lf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ target CCpp {
threading: false,
/// [[[end]]]
build-type : RelWithDebInfo,
logging: "warn"
logging: "warn",
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
1 change: 1 addition & 0 deletions C/Savina/src/concurrency/LogisticMap.lf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ target C {
]]] */
threading: false,
/// [[[end]]]
fast: true
}

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/concurrency/Philosophers.lf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ target C {
]]] */
threading: false,
/// [[[end]]]
logging: warn
logging: warn,
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/concurrency/SortedList.lf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ target CCpp {
]]] */
threading: false,
/// [[[end]]]
files: "../include/PseudoRandom.h"
files: "../include/PseudoRandom.h",
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/micro/Big.lf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ target C{
]]] */
threading: false,
/// [[[end]]]
files: "../include/PseudoRandom.h"
files: "../include/PseudoRandom.h",
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/micro/Chameneos.lf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ target C {
]]] */
threading: false,
/// [[[end]]]
logging: warn
logging: warn,
fast: true
}

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
1 change: 1 addition & 0 deletions C/Savina/src/micro/Counting.lf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ target C {
]]] */
threading: false,
/// [[[end]]]
fast: true
}

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
1 change: 1 addition & 0 deletions C/Savina/src/micro/ThreadRing.lf
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ target C {
]]] */
threading: false,
/// [[[end]]]
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/micro/Throughput.lf
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ target C {
]]] */
threading: false,
/// [[[end]]]
flags: "-lm"
flags: "-lm",
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/parallelism/Apsp.lf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ target C {
/// [[[end]]]
build-type : RelWithDebInfo,
cmake-include: ["../lib/matrix.cmake"],
files: ["../include/matrix.h", "../lib/matrix.c", "../include/PseudoRandom.h"]
files: ["../include/matrix.h", "../lib/matrix.c", "../include/PseudoRandom.h"],
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/parallelism/GuidedSearch.lf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ target CCpp {
"GuidedSearch/GuidedSearchCommon.hh",
"GuidedSearch/GridNode.cc",
"GuidedSearch/GridNode.hh"],
logging: "warn"
logging: "warn",
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/parallelism/MatMul.lf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ target C {
/// [[[end]]]
cmake-include: "../lib/matrix.cmake",
files: ["../lib/matrix.c", "../include/matrix.h"],
build-type: RelWithDebInfo
build-type: RelWithDebInfo,
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/parallelism/NQueens.lf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ target C{
/// [[[end]]]
logging: warn,
cmake-include: "/lib/c/reactor-c/util/deque.cmake",
files: ["/lib/c/reactor-c/util/deque.h", "/lib/c/reactor-c/util/deque.c"]
files: ["/lib/c/reactor-c/util/deque.h", "/lib/c/reactor-c/util/deque.c"],
fast: true

};

Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/parallelism/PiPrecision.lf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ target C {
]]] */
threading: false,
/// [[[end]]]
cmake-include: "PiPrecision.cmake"
cmake-include: "PiPrecision.cmake",
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/parallelism/RadixSort.lf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ target C {
]]] */
threading: false,
/// [[[end]]]
files: "../include/PseudoRandom.h"
files: "../include/PseudoRandom.h",
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down
3 changes: 2 additions & 1 deletion C/Savina/src/parallelism/Trapezoidal.lf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ target C {
]]] */
threading: false,
/// [[[end]]]
flags: "-lm"
flags: "-lm",
fast: true
};

import BenchmarkRunner from "../BenchmarkRunner.lf";
Expand Down

0 comments on commit 9288ece

Please sign in to comment.