Java 8 Stream Performance Benchmark
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

View only
 
 
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAE
1
BenchmarkPropertiesmicroseconds / opmilliseconds / operation
2
ClassMethod
struct.
iter.par.box.op50'000500'0001'000'0005'000'00010'000'00050'000'000
3
avgerroravgerroravgerroravgerroravgerroravgerror
4
SimpleOperationsBenchmark
array_averageDouble_forafavg55.8490.0700.5610.0031.1340.0175.8040.04011.5980.07658.1080.445
5
array_averageLong_forafavg18.6590.0450.1870.0010.3850.0092.0660.0364.1300.11020.9110.811
6
array_average_streamasavg163.92788.4151.5770.0093.1570.0185.9502.14810.5110.29952.4801.322
7
array_blackHole_forafbh166.3062.8131.5530.0243.0940.02715.5270.31631.0040.255156.6836.723
8
array_blackHole_streamasbh131.7398.8121.3250.0132.6670.06214.9100.06329.9390.222149.3360.743
9
array_max_forafmax12.5930.7270.1230.0020.2550.0161.6950.0373.5760.14417.7510.487
10
array_max_streamasmax167.7900.2000.5590.0011.1310.0125.8810.06512.0290.45560.1542.045
11
array_sum_forafsum18.6190.0250.1860.0010.3830.0122.0990.1074.2090.12521.1010.596
12
array_sum_streamassum136.96510.2591.3940.0062.7880.00713.9970.19814.08518.11021.0520.407
13
list_averageDouble_forlfxavg74.7080.3420.8380.0191.6950.0719.3060.66018.1683.00889.5832.795
14
list_averageLong_forlfxavg48.4001.1910.6880.0451.4470.0317.9400.21315.5610.79182.12710.167
15
list_average_streamlsxavg304.76743.3453.5840.2046.6250.54331.4670.64762.5341.203335.4787.377
16
list_blackHole_forlfxbh234.32218.9532.2650.1444.4770.00722.4660.13845.2840.937195.9693.235
17
list_blackHole_streamlsxbh230.41343.3322.2780.0185.2080.55126.6950.50252.0480.428264.7891.514
18
list_max_forlfxmax46.5780.2090.7000.0251.4400.0338.1740.42615.3460.65378.9702.901
19
list_max_streamlsxmax222.91098.0273.2720.0325.5302.04619.4550.64838.5192.727197.69511.646
20
list_sum_forlfxsum47.1380.1580.7140.0611.4260.0457.7060.19915.1710.60076.0774.913
21
list_sum_streamlsxsum299.96244.7403.5840.2246.5920.73931.2640.38763.0882.031333.2667.106
22
- dito with randomized dataarray_averageDouble_forafavg0.5590.003
23
array_averageLong_forafavg0.1890.008
24
array_average_streamasavg1.5810.017
25
array_blackHole_forafbh1.5490.048
26
array_blackHole_streamasbh1.3150.005
27
array_max_forafmax0.1300.001
28
array_max_streamasmax0.5590.001
29
array_sum_forafsum0.1870.002
30
array_sum_streamassum1.3930.008
31
list_averageDouble_forlfxavg0.8310.021
32
list_averageLong_forlfxavg0.6820.030
33
list_average_streamlsxavg3.4970.191
34
list_blackHole_forlfxbh2.2450.012
35
list_blackHole_streamlsxbh2.3030.037
36
list_max_forlfxmax0.6880.043
37
list_max_streamlsxmax3.2730.055
38
list_sum_forlfxsum0.6900.058
39
list_sum_streamlsxsum3.5430.242
40
MediumOperationsBenchmark
array_forafarith445.3201.4314.4050.0098.8890.04144.4220.16989.6711.663444.2011.312
41
array_forEachafexarith444.6501.0994.4340.0068.8850.02144.4710.46788.9800.792443.6421.607
42
array_streamasarith408.1313.4224.1000.0538.4200.02242.0040.04683.9810.113420.3771.029
43
array_stream_boxedasxarith772.75416.7297.6940.05415.6051.17877.6211.189154.4221.130794.7017.949
44
array_stream_parallelasxarith104.6552.5780.8990.0451.9000.2438.5171.05116.0310.97380.7659.941
45
array_stream_parallel_boxed
asxxarith200.14714.9701.9770.1803.9780.25618.9610.94534.3681.209201.3258.658
46
list_forlfxarith414.7420.2384.0990.0158.3170.03241.6070.16183.0290.139415.6531.023
47
list_forEachlfexarith465.0671.7234.7070.0789.3980.05247.9270.29395.4553.072480.0285.834
48
list_streamlsxarith632.7977.2137.7760.03315.4130.15778.4341.078154.6971.073786.13515.731
49
list_stream_parallellsxxarith159.30829.3441.6610.2592.8290.26016.0810.57029.0670.970138.13818.155
50
list_stream_parallel_unboxlsxxarith122.72530.8161.3450.1182.6380.13511.0454.14620.3493.386124.32312.273
51
list_stream_unboxlsxarith485.4066.2384.5180.1178.8080.11244.8620.43988.3920.521452.17615.487
52
50'000'000
53
ComplexOperationsBenchmark
array_forafxstr3435.23858.36949.5330.762100.3721.745588.01745.3491140.31428.1764697.473332.285
54
array_forEachafexstr3370.23814.90349.3251.028100.3263.146564.3706.6991133.4814.6454856.7021883.403
55
array_streamasxstr3473.016148.47352.2362.685106.3815.812588.56548.5141158.8879.7334827.489975.089
56
array_stream_parallelasxxstr1229.86578.57912.3740.16427.5062.084147.2558.777314.915171.0581655.568934.673
57
list_forlfxstr3438.98119.96149.9430.482101.1271.169568.2346.6531143.2335.7814894.9951269.409
58
list_forEachlfexstr3529.76279.56851.4181.296103.5902.734584.87023.9541171.12634.4434988.8993168.210
59
list_streamlsxstr4697.96157.40564.9892.085127.5531.666698.6286.9061397.96429.6895884.5221362.155
60
list_stream_parallellsxxstr1661.52313.42017.8720.35133.9931.713199.84811.330384.03325.4212265.725371.561
61
ControlStructuresBenchmarkarray_forafbh135.0109.2801.5540.0593.0760.01215.8260.61730.8720.208123.82840.013
62
array_forEachafexbh109.4214.7081.3800.0082.7580.01114.2451.09627.9610.955108.5357.378
63
array_streamasbh109.46615.5691.3160.0062.6600.08815.5041.14130.3202.361116.73910.558
64
array_stream_boxedasxbh400.17013.9194.5441.0377.5280.50637.9491.08874.0380.716307.35441.011
65
array_stream_parallelasxbh62.9410.5880.5020.0151.2461.0837.3817.03413.79112.65048.4026.920
66
array_stream_parallel_boxed
asxxbh946.44418.6108.9810.73716.6571.15089.8872.180173.0031.631777.32732.614
67
list_forlfxbh195.18518.2902.2490.0254.4800.03422.5570.19144.9110.346191.0595.853
68
list_forEachlfexbh213.07528.6142.5910.0645.5600.78427.3731.00852.3171.183206.026154.057
69
list_streamlsxbh162.45841.9772.3340.0825.0990.39227.2720.91851.6030.210199.68036.692
70
list_stream_parallellsxxbh789.76529.1588.4750.16816.6100.19586.4871.137153.13613.060700.924412.827
71
list_stream_parallel_unboxlsxxbh108.2121.0551.0910.1962.0490.4109.6570.33724.27622.14996.87312.422
72
list_stream_unboxlsxbh297.77965.1273.6550.1657.3850.01938.7941.84475.3541.030297.77974.477
73
CommentOperationsBenchmark
array_max_forafmax13.0700.1010.1310.0010.2770.0121.8090.0823.4740.05819.0201.559
74
array_max_forEachafemax13.4280.8800.1310.0020.2710.0051.7440.0413.4870.02917.7780.543
75
array_max_forWithException
afExmax13.2350.1240.1320.0070.2730.0051.7910.0393.4680.05719.3192.848
76
array_min_forafmin13.1840.1960.1300.0020.2800.0221.7670.0443.4800.02017.9580.828
77
boxedArray_max_forafxmax40.2110.3590.5900.0051.3550.0686.9330.26813.0640.28473.7955.211
78
boxedArray_max_forEachafexmax40.2600.2130.5980.0111.3380.0347.0260.46012.9230.10571.0264.124
79
boxedArray_max_streamasxmax211.54191.4032.8570.0875.0041.37227.30514.59453.07029.757275.349149.734
80
boxedArray_max_stream_unboxed
asxmax168.3670.7861.7570.0103.5480.07218.1600.20235.4730.393179.9813.507
81
list_max_forlfmax46.0610.3360.6530.0171.4360.0398.2200.33615.0850.34380.1783.172
82
list_max_forEachlfEmax52.1110.9630.7360.0281.5790.0518.5190.43915.6080.43381.4583.324
83
list_max_streamlsxmax361.49426.9753.2460.0175.5951.99528.09513.56958.51626.512281.562143.690
84
list_max_stream_unboxedlsxmax168.5090.1661.7570.0163.5270.01018.3420.61338.0710.944185.1009.847
85
list_min_streamlsxmin373.5271.1793.7670.1497.3070.14137.7750.70671.5560.101372.1315.716
86
list_min_stream_unboxedlsxmin168.6490.5291.7560.0153.5570.04718.4640.48835.0231.083181.8191.892
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Loading...