Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
% of Steam users with laptops
#! /usr/bin/perl
use v5.18;
use strict;
use warnings;
my $total = 0;
local $/ = "\n\n";
while(<DATA>) {
my($name, $percent) = split /\n/, $_, 3;
chomp $name;
chomp $percent;
next if $name !~ /(Intel HD Graphics|NVIDIA GeForce .*M|Mobile|Mobility)/;
say "$name $percent";
$percent =~ s{%}{};
$total += $percent;
}
say "Total $total%";
__END__
Intel HD Graphics 4000
5.24%
+0.05%
Intel HD Graphics 3000
3.32%
-0.09%
NVIDIA GeForce GTX 760
2.56%
+0.07%
NVIDIA GeForce GTX 660
2.37%
-0.08%
Intel HD Graphics 2000
2.32%
-0.04%
NVIDIA GeForce GTX 770
1.98%
0.00%
NVIDIA GeForce GTX 650
1.92%
-0.01%
NVIDIA GeForce GT 630
1.68%
-0.05%
Intel HD Graphics 2500
1.58%
+0.03%
NVIDIA GeForce GTX 550 Ti
1.49%
-0.03%
Intel HD Graphics 4400
1.49%
+0.11%
NVIDIA GeForce GT 620M
1.35%
-0.01%
NVIDIA GeForce GTX 560 Ti
1.27%
-0.04%
AMD Radeon HD 8800 Series
1.16%
+0.06%
AMD Radeon HD 7970
1.08%
0.00%
NVIDIA GeForce 210
1.05%
+0.01%
AMD Radeon HD 7850
1.05%
-0.03%
Intel Ironlake (Mobile)
1.04%
-0.02%
AMD Radeon HD 7770
1.02%
0.00%
Intel HD Graphics 4600
0.99%
+0.04%
NVIDIA GeForce GTS 450
0.98%
-0.05%
NVIDIA GeForce GT 740M
0.96%
-0.04%
NVIDIA GeForce GTX 670
0.93%
-0.05%
NVIDIA GeForce GTX 650 Ti
0.90%
-0.02%
NVIDIA GeForce GTX 780
0.88%
-0.01%
NVIDIA GeForce 9500
0.87%
0.00%
NVIDIA GeForce GTX 660 Ti
0.86%
-0.02%
NVIDIA GeForce 9600
0.85%
-0.04%
NVIDIA GeForce GTX 560
0.84%
-0.06%
NVIDIA GeForce GTX 750 Ti
0.84%
+0.10%
Mobile Intel 4 Series Express
0.82%
-0.02%
NVIDIA GeForce GT 640
0.79%
-0.03%
NVIDIA GeForce GT 650M
0.78%
-0.03%
NVIDIA GeForce 9800
0.76%
-0.02%
NVIDIA GeForce GTX 460
0.75%
+0.02%
AMD Radeon HD 7950
0.75%
+0.04%
AMD Radeon HD 5770
0.75%
0.00%
NVIDIA GeForce GT 630M
0.73%
-0.05%
NVIDIA GeForce GTS 250
0.73%
-0.02%
AMD Radeon HD 6670
0.73%
-0.03%
NVIDIA GeForce GT 540M
0.71%
-0.06%
NVIDIA GeForce GT 430
0.71%
+0.01%
NVIDIA GeForce GT 750M
0.71%
+0.02%
AMD Radeon HD 5450
0.70%
-0.01%
AMD Radeon HD 7870
0.69%
-0.02%
NVIDIA GeForce GTX 680
0.64%
-0.02%
AMD Radeon HD 6850
0.61%
-0.02%
NVIDIA GeForce GT 220
0.61%
-0.01%
AMD Radeon HD 6870
0.60%
0.00%
AMD Radeon HD 7750
0.58%
+0.02%
NVIDIA GeForce GTX 570
0.58%
+0.02%
NVIDIA GeForce GT 440
0.56%
-0.01%
Intel ValleyView2 HD Graphics
0.54%
+0.09%
AMD Radeon R9 200 Series
0.53%
+0.03%
NVIDIA GeForce GT 610
0.53%
-0.03%
NVIDIA GeForce GTX 970
0.51%
+0.30%
AMD Radeon R7 200 Series
0.49%
+0.04%
ATI Mobility Radeon HD 5470
0.48%
-0.03%
AMD Radeon HD 6570
0.47%
+0.01%
AMD Radeon HD 6950
0.47%
0.00%
NVIDIA GeForce GT 240
0.47%
-0.02%
NVIDIA GeForce 610M
0.47%
0.00%
ATI Mobility Radeon HD 5650
0.42%
0.00%
NVIDIA GeForce GTX 750
0.41%
+0.05%
NVIDIA GeForce GTX 660M
0.41%
+0.01%
NVIDIA GeForce GTX 780 Ti
0.40%
0.00%
NVIDIA GeForce 8600
0.40%
-0.02%
AMD Radeon HD 6450
0.40%
0.00%
Intel G41 Express
0.40%
-0.03%
NVIDIA GeForce GTX 860M
0.40%
+0.07%
AMD Radeon HD 5670
0.39%
-0.02%
AMD Radeon HD 7640G + 7670M
0.39%
0.00%
ATI Mobility Radeon HD 4200
0.38%
0.00%
AMD Radeon HD 6310
0.38%
-0.01%
Intel HD Graphics 5000
0.38%
+0.02%
NVIDIA GeForce 840M
0.37%
+0.07%
NVIDIA GeForce GTX 580
0.37%
-0.01%
NVIDIA GeForce GT 520
0.37%
-0.02%
NVIDIA GeForce 9400
0.36%
-0.02%
NVIDIA GeForce GTX 765M
0.36%
0.00%
NVIDIA GeForce 8400
0.36%
-0.01%
AMD Radeon HD 6520G
0.35%
-0.01%
NVIDIA GeForce GT 635M
0.34%
-0.01%
ATI Mobility Radeon HD 4570
0.33%
-0.01%
AMD Radeon HD 6770
0.32%
-0.01%
NVIDIA GeForce GT 620
0.32%
0.00%
Intel Iris Graphics 5100
0.32%
+0.02%
NVIDIA GeForce GTX 260
0.31%
-0.01%
AMD Radeon HD 4850
0.30%
0.00%
AMD Radeon HD 6490M
0.30%
-0.01%
AMD Radeon HD 7660G + 7670M
0.29%
0.00%
Intel G33/G31 Express
0.29%
0.00%
AMD Radeon HD 4650
0.29%
0.00%
NVIDIA GeForce GT 525M
0.29%
0.00%
NVIDIA GeForce GT 640M
0.28%
-0.01%
AMD Radeon HD 6750M
0.27%
-0.01%
NVIDIA GeForce GTX 650 Ti Boost
0.27%
0.00%
NVIDIA GeForce GT 520M
0.26%
0.00%
AMD Radeon HD 5750
0.26%
-0.01%
AMD Radeon HD 4350
0.26%
-0.01%
NVIDIA GeForce GTX 850M
0.26%
+0.04%
AMD Radeon HD 5850
0.25%
0.00%
AMD Radeon HD 7520G + 7670M
0.25%
+0.01%
AMD Radeon HD 7540D
0.25%
+0.06%
AMD Radeon HD 5570
0.25%
-0.01%
AMD Radeon HD 8650G
0.24%
0.00%
AMD Radeon HD 7480D
0.24%
-0.02%
Intel Iris Pro Graphics 5200
0.24%
+0.02%
AMD Radeon HD 4670
0.24%
0.00%
AMD Radeon HD 6530D
0.23%
0.00%
AMD Radeon HD 7310
0.22%
+0.01%
NVIDIA GeForce GT 555M
0.22%
0.00%
NVIDIA GeForce 310M
0.22%
-0.01%
NVIDIA GeForce 6100
0.22%
0.00%
NVIDIA GeForce 8800
0.21%
-0.02%
NVIDIA GeForce GT 330M
0.21%
0.00%
Mobile Intel 965 Express
0.21%
-0.01%
AMD Radeon HD 7560D
0.21%
-0.01%
AMD Radeon HD 5870
0.20%
-0.01%
AMD Radeon HD 6320
0.20%
0.00%
NVIDIA GeForce GTX 770M
0.20%
-0.01%
NVIDIA GeForce GT 755M
0.20%
0.00%
AMD Radeon HD 8330
0.19%
0.00%
AMD Radeon HD 8600
0.19%
0.00%
AMD Radeon HD 6410D
0.19%
+0.01%
AMD Radeon HD 6480G
0.19%
0.00%
ATI 760G
0.19%
-0.01%
NVIDIA GeForce GTX 560M
0.19%
0.00%
NVIDIA GeForce GTX 980
0.18%
+0.18%
AMD Radeon HD 4870
0.18%
0.00%
AMD Radeon HD 8400
0.18%
+0.01%
AMD Radeon HD 6770M
0.17%
-0.01%
AMD Radeon HD 6620G
0.17%
0.00%
AMD Radeon HD 6970
0.17%
-0.01%
AMD Radeon HD 7670M
0.17%
0.00%
ATI Mobility Radeon HD 5430
0.16%
+0.01%
NVIDIA GeForce GTX 470
0.16%
+0.01%
AMD Radeon HD 5500 Series
0.16%
-0.02%
AMD Radeon HD 7700 Series
0.16%
-0.01%
NVIDIA GeForce 9600M
0.16%
+0.01%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.