示例#1
0
void benchmark_reddit(CommandLine& commandLine)
{
    size_t times = 6;

    Interpreter interpreter("reddit.ops");
    for (size_t i = 0; i < times; ++i)
        interpreter.run();

    if (commandLine.detailedReport())
        interpreter.detailedReport();
}
示例#2
0
void benchmark_flickr(CommandLine& commandLine)
{
    size_t times = 3;

    Interpreter interpreter("flickr.ops");
    for (size_t i = 0; i < times; ++i)
        interpreter.run();

    if (commandLine.detailedReport())
        interpreter.detailedReport();
}
示例#3
0
void benchmark_reddit_memory_warning(CommandLine& commandLine)
{
    size_t times = 1;

    bool shouldFreeAllObjects = false;
    Interpreter interpreter("reddit_memory_warning.ops", shouldFreeAllObjects);
    for (size_t i = 0; i < times; ++i)
        interpreter.run();

    if (commandLine.detailedReport())
        interpreter.detailedReport();
}