- G1 Add: 0.75x
- G1 Mul: No change
- G1 MSM: discount changes
- Map to G1: 0.75x
- G2 Add: 0.75x
- G2 Mul: 0.5x
- G2 MSM: discount changes
- Map to G2: 0.2x
- Pairing: 1.2x
This corresponds to the following gas prices:
GAS_COST_g1add-1=375
GAS_COST_g1mul-1=12000
GAS_COST_g2add-1=600
GAS_COST_g2mul-1=22500
GAS_COST_mapfp-1=5500
GAS_COST_mapfp2-1=23800
GAS_COST_PAIRING_m=51600
GAS_COST_PAIRING_c=78000
GAS_G1_MSM_DISCOUNT=[[1, 1800], [2, 888], [3, 955], [4, 802], [5, 743], [6, 821], [7, 750], [8, 680], [9, 657], [10, 635], [11, 612], [12, 591], [13, 664], [14, 637], [15, 611], [16, 585], [17, 578], [18, 571], [19, 564], [20, 557], [21, 628], [22, 620], [23, 612], [24, 604], [25, 596], [26, 588], [27, 578], [28, 570], [29, 562], [30, 693], [31, 683], [32, 673], [33, 670], [34, 665], [35, 663], [36, 658], [37, 655], [38, 650], [39, 648], [40, 643], [41, 640], [42, 635], [43, 633], [44, 628], [45, 625], [46, 620], [47, 618], [48, 613], [49, 610], [50, 605], [51, 603], [52, 598], [53, 595], [54, 590], [55, 588], [56, 583], [57, 580], [58, 578], [59, 573], [60, 570], [61, 565], [62, 563], [63, 558], [64, 555], [65, 553], [66, 550], [67, 548], [68, 548], [69, 545], [70, 543], [71, 540], [72, 540], [73, 538], [74, 535], [75, 533], [76, 533], [77, 530], [78, 528], [79, 528], [80, 525], [81, 523], [82, 520], [83, 520], [84, 518], [85, 515], [86, 513], [87, 513], [88, 510], [89, 508], [90, 505], [91, 505], [92, 503], [93, 500], [94, 498], [95, 498], [96, 495], [97, 493], [98, 490], [99, 490], [100, 488], [101, 485], [102, 483], [103, 483], [104, 480], [105, 478], [106, 478], [107, 475], [108, 473], [109, 470], [110, 470], [111, 468], [112, 465], [113, 463], [114, 463], [115, 460], [116, 458], [117, 455], [118, 455], [119, 453], [120, 450], [121, 448], [122, 448], [123, 445], [124, 443], [125, 440], [126, 440], [127, 438], [128, 435]]
GAS_G2_MSM_DISCOUNT=[[1, 1800], [2, 1776], [3, 1528], [4, 1282], [5, 1188], [6, 1368], [7, 1250], [8, 1133], [9, 1095], [10, 1269], [11, 1224], [12, 1182], [13, 1137], [14, 1274], [15, 1222], [16, 1169], [17, 1155], [18, 1141], [19, 1127], [20, 1113], [21, 1256], [22, 1240], [23, 1224], [24, 1208], [25, 1192], [26, 1176], [27, 1156], [28, 1140], [29, 1124], [30, 1108], [31, 1092], [32, 1076], [33, 1072], [34, 1064], [35, 1060], [36, 1052], [37, 1048], [38, 1040], [39, 1036], [40, 1028], [41, 1024], [42, 1016], [43, 1012], [44, 1004], [45, 1000], [46, 992], [47, 988], [48, 980], [49, 976], [50, 968], [51, 964], [52, 956], [53, 952], [54, 944], [55, 940], [56, 932], [57, 928], [58, 924], [59, 916], [60, 912], [61, 904], [62, 900], [63, 892], [64, 888], [65, 884], [66, 880], [67, 876], [68, 876], [69, 872], [70, 868], [71, 864], [72, 864], [73, 860], [74, 856], [75, 852], [76, 852], [77, 848], [78, 844], [79, 844], [80, 840], [81, 836], [82, 832], [83, 832], [84, 828], [85, 824], [86, 820], [87, 820], [88, 816], [89, 812], [90, 808], [91, 808], [92, 804], [93, 800], [94, 796], [95, 796], [96, 792], [97, 788], [98, 784], [99, 784], [100, 780], [101, 776], [102, 772], [103, 772], [104, 768], [105, 764], [106, 764], [107, 760], [108, 756], [109, 752], [110, 752], [111, 748], [112, 744], [113, 740], [114, 740], [115, 736], [116, 732], [117, 728], [118, 728], [119, 724], [120, 720], [121, 716], [122, 716], [123, 712], [124, 708], [125, 704], [126, 704], [127, 700], [128, 696]]
EcRecover runs at about 80mgas/s on NUC. This would give following NUC results (no concurrency for MSM):
g1add-1: 86.61 mgas/s (83.42-90.05)
g1mul-1: 86.90 mgas/s (83.24-90.89)
g2add-1: 82.34 mgas/s (78.50-86.58)
g2mul-1: 93.40 mgas/s (88.11-99.38)
mapfp2-1: 165.7 mgas/s (165.0-166.4)
mapfp-1: 119.9 mgas/s (114.5-125.9)
g1msm-1: 159.0 mgas/s (155.3-162.9)
g1msm-10: 91.13 mgas/s (90.89-91.37)
g1msm-11: 87.45 mgas/s (87.21-87.68)
g1msm-12: 83.89 mgas/s (81.62-86.28)
g1msm-128: 83.04 mgas/s (82.57-83.51)
g1msm-13: 95.91 mgas/s (95.37-96.45)
g1msm-14: 92.93 mgas/s (92.51-93.34)
g1msm-15: 83.73 mgas/s (80.18-87.61)
g1msm-16: 79.12 mgas/s (76.19-82.29)
g1msm-17: 82.05 mgas/s (81.80-82.29)
g1msm-18: 82.02 mgas/s (81.71-82.34)
g1msm-19: 77.52 mgas/s (75.01-80.21)
g1msm-2: 82.04 mgas/s (79.67-84.57)
g1msm-20: 82.28 mgas/s (82.00-82.55)
g1msm-2048: 90.14 mgas/s (88.20-92.17)
g1msm-21: 90.76 mgas/s (88.18-93.49)
g1msm-22: 87.87 mgas/s (84.99-90.96)
g1msm-23: 90.91 mgas/s (90.59-91.23)
g1msm-24: 85.95 mgas/s (82.99-89.13)
g1msm-25: 89.25 mgas/s (88.99-89.50)
g1msm-256: 86.62 mgas/s (85.96-87.29)
g1msm-26: 84.36 mgas/s (81.21-87.76)
g1msm-27: 87.78 mgas/s (87.49-88.08)
g1msm-28: 82.54 mgas/s (79.75-85.53)
g1msm-29: 85.55 mgas/s (85.16-85.94)
g1msm-3: 96.70 mgas/s (95.25-98.19)
g1msm-30: 101.2 mgas/s (97.90-104.7)
g1msm-31: 105.3 mgas/s (104.8-105.7)
g1msm-32: 102.4 mgas/s (101.9-103.0)
g1msm-4: 92.38 mgas/s (89.17-95.82)
g1msm-4096: 93.82 mgas/s (90.39-97.51)
g1msm-5: 89.31 mgas/s (86.11-92.76)
g1msm-512: 90.21 mgas/s (89.74-90.70)
g1msm-6: 94.95 mgas/s (94.12-95.81)
g1msm-64: 86.09 mgas/s (82.11-90.48)
g1msm-7: 95.65 mgas/s (92.51-99.01)
g1msm-8: 92.10 mgas/s (92.03-92.18)
g1msm-9: 84.08 mgas/s (80.26-88.29)
g2msm-1: 93.10 mgas/s (85.74-101.8)
g2msm-10: 94.51 mgas/s (86.57-104.0)
g2msm-11: 87.62 mgas/s (78.23-99.56)
g2msm-12: 89.33 mgas/s (82.16-97.88)
g2msm-128: 75.06 mgas/s (67.88-83.93)
g2msm-13: 84.62 mgas/s (77.13-93.73)
g2msm-14: 91.53 mgas/s (83.02-102.0)
g2msm-15: 92.39 mgas/s (81.37-106.9)
g2msm-16: 95.46 mgas/s (85.89-107.4)
g2msm-17: 84.91 mgas/s (76.77-94.99)
g2msm-18: 94.71 mgas/s (87.22-103.6)
g2msm-19: 87.91 mgas/s (79.06-98.99)
g2msm-2: 92.87 mgas/s (84.47-103.1)
g2msm-20: 93.55 mgas/s (85.13-103.8)
g2msm-2048: 96.32 mgas/s (86.31-109.0)
g2msm-21: 106.5 mgas/s (96.72-118.5)
g2msm-22: 107.8 mgas/s (96.11-122.7)
g2msm-23: 94.72 mgas/s (87.03-103.9)
g2msm-24: 101.9 mgas/s (95.29-109.4)
g2msm-25: 94.65 mgas/s (84.80-107.1)
g2msm-256: 80.92 mgas/s (71.32-93.50)
g2msm-26: 96.59 mgas/s (86.76-108.9)
g2msm-27: 97.09 mgas/s (86.79-110.2)
g2msm-28: 99.22 mgas/s (92.10-107.5)
g2msm-29: 95.41 mgas/s (88.14-104.0)
g2msm-3: 88.60 mgas/s (81.36-97.25)
g2msm-30: 96.92 mgas/s (87.77-108.2)
g2msm-31: 93.81 mgas/s (89.56-98.48)
g2msm-32: 102.1 mgas/s (93.50-112.5)
g2msm-4: 79.59 mgas/s (74.19-85.83)
g2msm-4096: 104.1 mgas/s (95.68-114.1)
g2msm-5: 80.36 mgas/s (76.30-84.89)
g2msm-512: 89.00 mgas/s (82.91-96.05)
g2msm-6: 91.34 mgas/s (85.12-98.54)
g2msm-64: 85.75 mgas/s (79.90-92.52)
g2msm-7: 92.69 mgas/s (83.70-103.8)
g2msm-8: 83.39 mgas/s (76.65-91.41)
g2msm-9: 81.03 mgas/s (74.96-88.18)
pairing-1: 98.17 mgas/s (86.76-113.0)
pairing-2: 97.18 mgas/s (89.10-106.9)
pairing-3: 92.61 mgas/s (85.50-101.0)
pairing-4: 89.95 mgas/s (83.19-97.91)
pairing-5: 89.82 mgas/s (81.84-99.52)
pairing-6: 86.38 mgas/s (78.36-96.24)
pairing-7: 89.62 mgas/s (82.97-97.43)
pairing-8: 82.44 mgas/s (75.68-90.53)