| 1 | package WWW::Passmark::CPU; |
| 2 | |
| 3 | use 5.014000; |
| 4 | use strict; |
| 5 | use warnings; |
| 6 | |
| 7 | sub name { shift->[0] } |
| 8 | sub price { shift->[1] } |
| 9 | sub cpumark { shift->[2] } |
| 10 | sub value { shift->[3] } |
| 11 | sub single_thread_mark { shift->[4] } |
| 12 | sub single_thread_value { shift->[5] } |
| 13 | sub tdp { shift->[6] } |
| 14 | sub power_performance { shift->[7] } |
| 15 | sub test_date { shift->[8] } |
| 16 | sub socket { shift->[9] } |
| 17 | sub category { shift->[10] } |
| 18 | sub extra_info { shift->[11] } |
| 19 | |
| 20 | 1; |
| 21 | __END__ |
| 22 | |
| 23 | =encoding utf-8 |
| 24 | |
| 25 | =head1 NAME |
| 26 | |
| 27 | WWW::Passmark::CPU - benchmark results of a CPU |
| 28 | |
| 29 | =head1 SYNOPSIS |
| 30 | |
| 31 | my $cpu = ...; |
| 32 | say $cpu->name; # AMD FX-8350 Eight-Core |
| 33 | say $cpu->cpumark; # 8950 |
| 34 | say $cpu->test_date; # Oct 2012 |
| 35 | say $cpu->tdp; # 125 |
| 36 | |
| 37 | =head1 DESCRIPTION |
| 38 | |
| 39 | An instance of this module represents benchmark results for some CPU. |
| 40 | Methods of this module return the various results, see source code for |
| 41 | a list of available methods. |
| 42 | |
| 43 | =head1 AUTHOR |
| 44 | |
| 45 | Marius Gavrilescu, E<lt>marius@ieval.roE<gt> |
| 46 | |
| 47 | =head1 COPYRIGHT AND LICENSE |
| 48 | |
| 49 | Copyright (C) 2018 by Marius Gavrilescu |
| 50 | |
| 51 | This library is free software; you can redistribute it and/or modify |
| 52 | it under the same terms as Perl itself, either Perl version 5.24.1 or, |
| 53 | at your option, any later version of Perl 5 you may have available. |
| 54 | |
| 55 | |
| 56 | =cut |