Subversion Repositories SmartDukaan

Rev

Rev 4569 | Rev 5204 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4569 Rev 5173
Line 9... Line 9...
9
    
9
    
10
    return max * 1.0
10
    return max * 1.0
11
 
11
 
12
def getBenchmarkScore(model):
12
def getBenchmarkScore(model):
13
    processor_benchmarks = {
13
    processor_benchmarks = {
-
 
14
        "2310M" :    2619.0,
14
        'Intel 2630QM 2GHz': 6337,
15
        "2330M " :    2729.0,
15
        'Intel 2430M 2.4GHz': 3483,
16
        "2350M" :    2932.0,
16
        'Intel 2410M 2.3GHz': 3362,
17
        "2410M" :    3362.0,
17
        'Intel 2330M 2.2GHz': 2727,
18
        "2430M " :    3456.0,
18
        'Intel 2310M 2.1GHz': 2623,
19
        "2450M" :    3566.0,
-
 
20
        "2467M" :    205.0,
19
        'Intel 370M 2.4GHz': 2218,
21
        "2557M" :    224.0,
20
        'Intel B950 2.1GHz': 2018, 
22
        "2630QM" :    6345.0,
-
 
23
        "2640M" :    4065.0,
21
        'Intel B940 2GHz': 1904,
24
        "2670QM" :    6811.0,
-
 
25
        "2720QM" :    6973.0,
-
 
26
        "2760QM" :    7595.0,
22
        'Intel T4500 2.3GHz': 1545,
27
        "370M" :    2238.0,
23
        'Intel T6750 2.1GHz': 1349,
28
        "380M" :    2328.0,
24
        'Intel 380UM 1.33GHz': 1301,
29
        "380UM " :    1317.0,
-
 
30
        "3400M" :    2976.0,
25
        'AMD Athlon II Neo K325 Dual-Core': 784,
31
        "A6-3400M" :    2976.0,
26
        'AMD Neo-K235': 782,
32
        "AMD C60" :    565.0,
-
 
33
        "C60" :    565.0,
-
 
34
        "B800" :    1365.0,
-
 
35
        "B940" :    1880.0,
-
 
36
        "B950" :    1959.0,
-
 
37
        "B960" :    2090.0,
-
 
38
        "E-300" :    597.0,
27
        'AMD E 350': 724,
39
        "E-350" :    727.0,
-
 
40
        "E-450" :    743.0,
-
 
41
        "2435M" :    3336.0,
-
 
42
        "2367M" :    1844.0,
-
 
43
        "i3-2367M" :    1844.0,
-
 
44
        "N2600" :    590.0,
-
 
45
        "N2800" :    723.0,
-
 
46
        "N455" :    320.0,
-
 
47
        "N550" :    569.0,
28
        'Intel N570 1.66GHz': 646,
48
        "N570" :    639.0,
-
 
49
        "K325" :    780.0,
-
 
50
        "Neo K325" :    780.0,
29
        'Intel N455 1.66GHz': 321
51
        "P6200" :    1663.0,
-
 
52
        "T4500" :    1575.0,
-
 
53
        "T6570" :    1345.0
30
    }
54
    }
31
    max_score = getMaxValFromDict(processor_benchmarks)
55
    max_score = getMaxValFromDict(processor_benchmarks)
32
    score = 0.0
56
    score = max_score/2
33
    
57
    
34
    for processor, benchmark_score in processor_benchmarks.iteritems():
58
    for processor, benchmark_score in processor_benchmarks.iteritems():
35
        if(processor.lower().find(model.lower()) > -1):
59
        if(processor.lower().find(model.lower()) > -1):
-
 
60
            if benchmark_score <= 0.2*max_score:
-
 
61
                score = 0.2*max_score
-
 
62
            else :
36
            score = benchmark_score
63
                score = benchmark_score
37
    
64
    
38
    return (score * 10.0) / max_score
65
    return (score * 10.0) / max_score
39
 
66
 
40
def getChipsetScore(chipset):
67
def getChipsetScore(chipset):
41
    chipset_scores = {
68
    chipset_scores = {