OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [test_suite0/] [src/] [perf/] [perf.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Copyright (C) 2010 B Labs Ltd.
3
 *
4
 * API performance tests
5
 *
6
 * Author: Bahadir Balban
7
 */
8
#include <tests.h>
9
#include <perf.h>
10
#include <timer.h>
11
 
12
/*
13
 * Tests all api functions by performance
14
 */
15
int test_performance(void)
16
{
17
        perf_timer_init();
18
 
19
        platform_measure_cpu_cycles();
20
 
21
        perf_measure_getid_ticks();
22
        perf_measure_getid();
23
        perf_measure_tctrl();
24
        perf_measure_exregs();
25
        perf_measure_ipc();
26
        perf_measure_map();
27
        perf_measure_unmap();
28
        perf_measure_mutex();
29
 
30
        return 0;
31
}
32
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.