Subversion Repositories SmartDukaan

Rev

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

Rev 5204 Rev 5205
Line 13... Line 13...
13
    processor_benchmarks = {
13
    processor_benchmarks = {
14
        "2310M" :    2619.0,
14
        "2310M" :    2619.0,
15
        "2330M " :    2729.0,
15
        "2330M " :    2729.0,
16
        "2350M" :    2932.0,
16
        "2350M" :    2932.0,
17
        "2410M" :    3362.0,
17
        "2410M" :    3362.0,
18
        "2430M " :    3456.0,
18
        "2430M" :    3456.0,
19
        "2450M" :    3566.0,
19
        "2450M" :    3573.0,
20
        "2467M" :    205.0,
20
        "2467M" :    2413.0,
21
        "2557M" :    224.0,
21
        "2557M" :    2601.0,
22
        "2630QM" :    6345.0,
22
        "2630QM" :    6345.0,
23
        "2640M" :    4065.0,
23
        "2640M" :    4065.0,
24
        "2670QM" :    6811.0,
24
        "2670QM" :    6811.0,
25
        "2720QM" :    6973.0,
25
        "2720QM" :    6973.0,
26
        "2760QM" :    7595.0,
26
        "2760QM" :    7595.0,
27
        "370M" :    2238.0,
27
        "370M" :    2238.0,
28
        "380M" :    2328.0,
28
        "380M" :    2328.0,
29
        "380UM " :    1317.0,
29
        "380UM" :    1317.0,
30
        "3400M" :    2976.0,
30
        "3400M" :    2976.0,
31
        "A6-3400M" :    2976.0,
31
        "A6-3400M" :    2976.0,
32
        "AMD C60" :    565.0,
32
        "AMD C60" :    565.0,
33
        "C60" :    565.0,
33
        "C60" :    565.0,
34
        "B800" :    1365.0,
34
        "B800" :    1365.0,
Line 51... Line 51...
51
        "P6200" :    1663.0,
51
        "P6200" :    1663.0,
52
        "T4500" :    1575.0,
52
        "T4500" :    1575.0,
53
        "T6570" :    1345.0
53
        "T6570" :    1345.0
54
    }
54
    }
55
    max_score = getMaxValFromDict(processor_benchmarks)
55
    max_score = getMaxValFromDict(processor_benchmarks)
56
    score = max_score/2
56
    score = 0.0   
57
    
-
 
58
    for processor, benchmark_score in processor_benchmarks.iteritems():
57
    for processor, benchmark_score in processor_benchmarks.iteritems():
59
        if(processor.lower().find(model.lower()) > -1):
58
        if(model.lower().find((processor.lower())) > -1):
60
            score = benchmark_score
59
            score = benchmark_score
61
    
60
    
62
    return (score * 10.0) / max_score
61
    return (score * 10.0) / max_score
63
 
62
 
64
def getChipsetScore(chipset):
63
def getChipsetScore(chipset):