Skip to content

Commit 87cddc4

Browse files
actions-usergithub-actions[bot]
authored andcommitted
chore(string-endsWith.mjs): update benchmark results
1 parent f23efe9 commit 87cddc4

28 files changed

+348
-230
lines changed

RESULTS-v18.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -671,25 +671,25 @@ new Array(length)|100,000,000|4,473.702ms
671671

672672
|name|ops/sec|samples|
673673
|-|-|-|
674-
|(short string) (true) String#endsWith|12,045,954|6022978|
675-
|(short string) (true) String#slice and strict comparison|12,081,236|6040619|
676-
|(long string) (true) String#endsWith|11,739,042|5869522|
677-
|(long string) (true) String#slice and strict comparison|11,837,242|5918622|
678-
|(short string) (false) String#endsWith|12,079,039|6039520|
679-
|(short string) (false) String#slice and strict comparison|12,483,546|6241774|
680-
|(long string) (false) String#endsWith|12,141,296|6070649|
681-
|(long string) (false) String#slice and strict comparison|12,163,741|6081871|
674+
|(short string) (true) String#endsWith|11,871,050|5935567|
675+
|(short string) (true) String#slice and strict comparison|12,191,789|6095895|
676+
|(long string) (true) String#endsWith|11,746,269|5873135|
677+
|(long string) (true) String#slice and strict comparison|11,886,005|5943003|
678+
|(short string) (false) String#endsWith|11,900,151|5950076|
679+
|(short string) (false) String#slice and strict comparison|12,835,016|6417509|
680+
|(long string) (false) String#endsWith|11,970,854|5985428|
681+
|(long string) (false) String#slice and strict comparison|12,275,549|6137775|
682682

683683

684684
<details>
685685
<summary>Environment</summary>
686686

687687
* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem
688-
* __Run:__ Mon Sep 02 2024 18:53:25 GMT+0000 (Coordinated Universal Time)
688+
* __Run:__ Wed Sep 25 2024 23:35:56 GMT+0000 (Coordinated Universal Time)
689689
</details>
690690

691691
<!--
692-
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.588970184326172},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":12045954.279460024,"samples":6022978},{"name":"(short string) (true) String#slice and strict comparison","opsSec":12081236.906261401,"samples":6040619},{"name":"(long string) (true) String#endsWith","opsSec":11739042.958625533,"samples":5869522},{"name":"(long string) (true) String#slice and strict comparison","opsSec":11837242.952251328,"samples":5918622},{"name":"(short string) (false) String#endsWith","opsSec":12079039.31265665,"samples":6039520},{"name":"(short string) (false) String#slice and strict comparison","opsSec":12483546.742509248,"samples":6241774},{"name":"(long string) (false) String#endsWith","opsSec":12141296.442781363,"samples":6070649},{"name":"(long string) (false) String#slice and strict comparison","opsSec":12163741.17751526,"samples":6081871}]}-->
692+
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":11871050.822697347,"samples":5935567},{"name":"(short string) (true) String#slice and strict comparison","opsSec":12191789.874010589,"samples":6095895},{"name":"(long string) (true) String#endsWith","opsSec":11746269.392547788,"samples":5873135},{"name":"(long string) (true) String#slice and strict comparison","opsSec":11886005.469274053,"samples":5943003},{"name":"(short string) (false) String#endsWith","opsSec":11900151.082514916,"samples":5950076},{"name":"(short string) (false) String#slice and strict comparison","opsSec":12835016.71542469,"samples":6417509},{"name":"(long string) (false) String#endsWith","opsSec":11970854.3230531,"samples":5985428},{"name":"(long string) (false) String#slice and strict comparison","opsSec":12275549.981525086,"samples":6137775}]}-->
693693

694694
## String searching
695695

RESULTS-v20.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -671,25 +671,25 @@ new Array(length)|100,000,000|4,323.708ms
671671

672672
|name|ops/sec|samples|
673673
|-|-|-|
674-
|(short string) (true) String#endsWith|14,386,517|7193259|
675-
|(short string) (true) String#slice and strict comparison|14,212,518|7106260|
676-
|(long string) (true) String#endsWith|13,517,725|6758863|
677-
|(long string) (true) String#slice and strict comparison|13,579,221|6789611|
678-
|(short string) (false) String#endsWith|14,830,462|7415232|
679-
|(short string) (false) String#slice and strict comparison|14,657,651|7328827|
680-
|(long string) (false) String#endsWith|14,637,711|7318856|
681-
|(long string) (false) String#slice and strict comparison|14,111,782|7055892|
674+
|(short string) (true) String#endsWith|13,392,190|6696096|
675+
|(short string) (true) String#slice and strict comparison|14,027,467|7013734|
676+
|(long string) (true) String#endsWith|13,580,405|6790203|
677+
|(long string) (true) String#slice and strict comparison|13,789,071|6894536|
678+
|(short string) (false) String#endsWith|14,231,909|7115955|
679+
|(short string) (false) String#slice and strict comparison|14,116,943|7058472|
680+
|(long string) (false) String#endsWith|13,668,176|6834089|
681+
|(long string) (false) String#slice and strict comparison|13,329,182|6664592|
682682

683683

684684
<details>
685685
<summary>Environment</summary>
686686

687687
* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem
688-
* __Run:__ Mon Sep 02 2024 18:57:19 GMT+0000 (Coordinated Universal Time)
688+
* __Run:__ Wed Sep 25 2024 23:42:14 GMT+0000 (Coordinated Universal Time)
689689
</details>
690690

691691
<!--
692-
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.588970184326172},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":14386517.107983299,"samples":7193259},{"name":"(short string) (true) String#slice and strict comparison","opsSec":14212518.123974895,"samples":7106260},{"name":"(long string) (true) String#endsWith","opsSec":13517725.756552009,"samples":6758863},{"name":"(long string) (true) String#slice and strict comparison","opsSec":13579221.484032487,"samples":6789611},{"name":"(short string) (false) String#endsWith","opsSec":14830462.101656832,"samples":7415232},{"name":"(short string) (false) String#slice and strict comparison","opsSec":14657651.185567275,"samples":7328827},{"name":"(long string) (false) String#endsWith","opsSec":14637711.033874108,"samples":7318856},{"name":"(long string) (false) String#slice and strict comparison","opsSec":14111782.250095695,"samples":7055892}]}-->
692+
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":13392190.392996049,"samples":6696096},{"name":"(short string) (true) String#slice and strict comparison","opsSec":14027467.943729768,"samples":7013734},{"name":"(long string) (true) String#endsWith","opsSec":13580405.538370201,"samples":6790203},{"name":"(long string) (true) String#slice and strict comparison","opsSec":13789071.034983817,"samples":6894536},{"name":"(short string) (false) String#endsWith","opsSec":14231909.146061553,"samples":7115955},{"name":"(short string) (false) String#slice and strict comparison","opsSec":14116943.689536422,"samples":7058472},{"name":"(long string) (false) String#endsWith","opsSec":13668176.851578983,"samples":6834089},{"name":"(long string) (false) String#slice and strict comparison","opsSec":13329182.587272394,"samples":6664592}]}-->
693693

694694
## String searching
695695

RESULTS-v21.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -671,25 +671,25 @@ new Array(length)|100,000,000|4,646.55ms
671671

672672
|name|ops/sec|samples|
673673
|-|-|-|
674-
|(short string) (true) String#endsWith|14,828,985|7414493|
675-
|(short string) (true) String#slice and strict comparison|13,235,751|6617876|
676-
|(long string) (true) String#endsWith|14,000,313|7000157|
677-
|(long string) (true) String#slice and strict comparison|12,793,747|6396874|
678-
|(short string) (false) String#endsWith|15,188,186|7594094|
679-
|(short string) (false) String#slice and strict comparison|12,887,299|6443650|
680-
|(long string) (false) String#endsWith|14,677,784|7338893|
681-
|(long string) (false) String#slice and strict comparison|11,978,702|5989352|
674+
|(short string) (true) String#endsWith|14,576,020|7288011|
675+
|(short string) (true) String#slice and strict comparison|12,297,375|6148688|
676+
|(long string) (true) String#endsWith|13,585,069|6792535|
677+
|(long string) (true) String#slice and strict comparison|11,699,620|5849811|
678+
|(short string) (false) String#endsWith|14,892,924|7446463|
679+
|(short string) (false) String#slice and strict comparison|12,349,434|6174718|
680+
|(long string) (false) String#endsWith|14,496,524|7248263|
681+
|(long string) (false) String#slice and strict comparison|12,001,264|6000633|
682682

683683

684684
<details>
685685
<summary>Environment</summary>
686686

687687
* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem
688-
* __Run:__ Mon Sep 02 2024 19:02:17 GMT+0000 (Coordinated Universal Time)
688+
* __Run:__ Wed Sep 25 2024 23:47:23 GMT+0000 (Coordinated Universal Time)
689689
</details>
690690

691691
<!--
692-
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.588970184326172},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":14828985.94061628,"samples":7414493},{"name":"(short string) (true) String#slice and strict comparison","opsSec":13235751.603003973,"samples":6617876},{"name":"(long string) (true) String#endsWith","opsSec":14000313.467615284,"samples":7000157},{"name":"(long string) (true) String#slice and strict comparison","opsSec":12793747.770062841,"samples":6396874},{"name":"(short string) (false) String#endsWith","opsSec":15188186.390132809,"samples":7594094},{"name":"(short string) (false) String#slice and strict comparison","opsSec":12887299.768165426,"samples":6443650},{"name":"(long string) (false) String#endsWith","opsSec":14677784.884542651,"samples":7338893},{"name":"(long string) (false) String#slice and strict comparison","opsSec":11978702.921734737,"samples":5989352}]}-->
692+
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":14576020.30925425,"samples":7288011},{"name":"(short string) (true) String#slice and strict comparison","opsSec":12297375.65573045,"samples":6148688},{"name":"(long string) (true) String#endsWith","opsSec":13585069.157892276,"samples":6792535},{"name":"(long string) (true) String#slice and strict comparison","opsSec":11699620.548987096,"samples":5849811},{"name":"(short string) (false) String#endsWith","opsSec":14892924.391525261,"samples":7446463},{"name":"(short string) (false) String#slice and strict comparison","opsSec":12349434.1723462,"samples":6174718},{"name":"(long string) (false) String#endsWith","opsSec":14496524.637143116,"samples":7248263},{"name":"(long string) (false) String#slice and strict comparison","opsSec":12001264.487910893,"samples":6000633}]}-->
693693

694694
## String searching
695695

RESULTS-v22.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,3 +627,27 @@ new Array(length)|100,000,000|4,868.68ms
627627

628628
<!--
629629
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"Using + sign","opsSec":13664179.016064942,"samples":6832090},{"name":"Using backtick (`)","opsSec":13843917.39077506,"samples":6921959},{"name":"Using array.join","opsSec":5651921.740020271,"samples":2825961}]}-->
630+
631+
## endsWith comparison
632+
633+
|name|ops/sec|samples|
634+
|-|-|-|
635+
|(short string) (true) String#endsWith|14,795,573|7397787|
636+
|(short string) (true) String#slice and strict comparison|13,232,784|6616393|
637+
|(long string) (true) String#endsWith|14,038,049|7019025|
638+
|(long string) (true) String#slice and strict comparison|12,776,337|6388169|
639+
|(short string) (false) String#endsWith|14,883,863|7441932|
640+
|(short string) (false) String#slice and strict comparison|13,125,472|6562737|
641+
|(long string) (false) String#endsWith|14,876,035|7438018|
642+
|(long string) (false) String#slice and strict comparison|12,946,880|6473441|
643+
644+
645+
<details>
646+
<summary>Environment</summary>
647+
648+
* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem
649+
* __Run:__ Wed Sep 25 2024 23:49:56 GMT+0000 (Coordinated Universal Time)
650+
</details>
651+
652+
<!--
653+
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":14795573.20103092,"samples":7397787},{"name":"(short string) (true) String#slice and strict comparison","opsSec":13232784.517802754,"samples":6616393},{"name":"(long string) (true) String#endsWith","opsSec":14038049.298075235,"samples":7019025},{"name":"(long string) (true) String#slice and strict comparison","opsSec":12776337.795610504,"samples":6388169},{"name":"(short string) (false) String#endsWith","opsSec":14883863.880491538,"samples":7441932},{"name":"(short string) (false) String#slice and strict comparison","opsSec":13125472.188558547,"samples":6562737},{"name":"(long string) (false) String#endsWith","opsSec":14876035.940143198,"samples":7438018},{"name":"(long string) (false) String#slice and strict comparison","opsSec":12946880.213624962,"samples":6473441}]}-->

v18/RESULTS-v18_0_0.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -671,25 +671,25 @@ new Array(length)|100,000,000|4,535.07ms
671671

672672
|name|ops/sec|samples|
673673
|-|-|-|
674-
|(short string) (true) String#endsWith|14,512,535|7256268|
675-
|(short string) (true) String#slice and strict comparison|15,180,412|7590207|
676-
|(long string) (true) String#endsWith|14,438,994|7219498|
677-
|(long string) (true) String#slice and strict comparison|14,789,636|7394819|
678-
|(short string) (false) String#endsWith|15,852,182|7926092|
679-
|(short string) (false) String#slice and strict comparison|15,025,373|7512687|
680-
|(long string) (false) String#endsWith|14,402,472|7201237|
681-
|(long string) (false) String#slice and strict comparison|14,808,461|7404231|
674+
|(short string) (true) String#endsWith|11,554,515|5777258|
675+
|(short string) (true) String#slice and strict comparison|12,546,640|6273321|
676+
|(long string) (true) String#endsWith|11,959,170|5979586|
677+
|(long string) (true) String#slice and strict comparison|12,670,074|6335038|
678+
|(short string) (false) String#endsWith|12,361,782|6180892|
679+
|(short string) (false) String#slice and strict comparison|13,232,019|6616010|
680+
|(long string) (false) String#endsWith|12,282,181|6141091|
681+
|(long string) (false) String#slice and strict comparison|12,775,132|6387567|
682682

683683

684684
<details>
685685
<summary>Environment</summary>
686686

687687
* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem
688-
* __Run:__ Mon Sep 02 2024 18:54:45 GMT+0000 (Coordinated Universal Time)
688+
* __Run:__ Wed Sep 25 2024 23:38:25 GMT+0000 (Coordinated Universal Time)
689689
</details>
690690

691691
<!--
692-
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.588970184326172},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":14512535.925068114,"samples":7256268},{"name":"(short string) (true) String#slice and strict comparison","opsSec":15180412.818583772,"samples":7590207},{"name":"(long string) (true) String#endsWith","opsSec":14438994.312194781,"samples":7219498},{"name":"(long string) (true) String#slice and strict comparison","opsSec":14789636.973457083,"samples":7394819},{"name":"(short string) (false) String#endsWith","opsSec":15852182.912107522,"samples":7926092},{"name":"(short string) (false) String#slice and strict comparison","opsSec":15025373.556015195,"samples":7512687},{"name":"(long string) (false) String#endsWith","opsSec":14402472.851066256,"samples":7201237},{"name":"(long string) (false) String#slice and strict comparison","opsSec":14808461.799086088,"samples":7404231}]}-->
692+
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":11554515.306218037,"samples":5777258},{"name":"(short string) (true) String#slice and strict comparison","opsSec":12546640.319420965,"samples":6273321},{"name":"(long string) (true) String#endsWith","opsSec":11959170.186758805,"samples":5979586},{"name":"(long string) (true) String#slice and strict comparison","opsSec":12670074.607136676,"samples":6335038},{"name":"(short string) (false) String#endsWith","opsSec":12361782.433613526,"samples":6180892},{"name":"(short string) (false) String#slice and strict comparison","opsSec":13232019.929708017,"samples":6616010},{"name":"(long string) (false) String#endsWith","opsSec":12282181.807464251,"samples":6141091},{"name":"(long string) (false) String#slice and strict comparison","opsSec":12775132.33783406,"samples":6387567}]}-->
693693

694694
## String searching
695695

v18/RESULTS-v18_20_3.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -671,25 +671,25 @@ new Array(length)|100,000,000|4,491.991ms
671671

672672
|name|ops/sec|samples|
673673
|-|-|-|
674-
|(short string) (true) String#endsWith|12,408,875|6204438|
675-
|(short string) (true) String#slice and strict comparison|12,587,205|6293603|
676-
|(long string) (true) String#endsWith|12,313,079|6156540|
677-
|(long string) (true) String#slice and strict comparison|12,003,973|6001987|
678-
|(short string) (false) String#endsWith|12,752,433|6376217|
679-
|(short string) (false) String#slice and strict comparison|12,919,679|6459840|
680-
|(long string) (false) String#endsWith|12,582,074|6291038|
681-
|(long string) (false) String#slice and strict comparison|12,468,376|6234189|
674+
|(short string) (true) String#endsWith|11,625,226|5812614|
675+
|(short string) (true) String#slice and strict comparison|11,663,983|5831992|
676+
|(long string) (true) String#endsWith|11,346,505|5673253|
677+
|(long string) (true) String#slice and strict comparison|11,193,376|5596689|
678+
|(short string) (false) String#endsWith|11,814,962|5907482|
679+
|(short string) (false) String#slice and strict comparison|12,125,120|6062561|
680+
|(long string) (false) String#endsWith|11,492,343|5746172|
681+
|(long string) (false) String#slice and strict comparison|11,566,593|5783299|
682682

683683

684684
<details>
685685
<summary>Environment</summary>
686686

687687
* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem
688-
* __Run:__ Mon Sep 02 2024 18:52:10 GMT+0000 (Coordinated Universal Time)
688+
* __Run:__ Wed Sep 25 2024 23:37:09 GMT+0000 (Coordinated Universal Time)
689689
</details>
690690

691691
<!--
692-
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.588970184326172},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":12408875.038993927,"samples":6204438},{"name":"(short string) (true) String#slice and strict comparison","opsSec":12587205.65272529,"samples":6293603},{"name":"(long string) (true) String#endsWith","opsSec":12313079.66460005,"samples":6156540},{"name":"(long string) (true) String#slice and strict comparison","opsSec":12003973.669666016,"samples":6001987},{"name":"(short string) (false) String#endsWith","opsSec":12752433.71857139,"samples":6376217},{"name":"(short string) (false) String#slice and strict comparison","opsSec":12919679.188439434,"samples":6459840},{"name":"(long string) (false) String#endsWith","opsSec":12582074.993332593,"samples":6291038},{"name":"(long string) (false) String#slice and strict comparison","opsSec":12468376.509194655,"samples":6234189}]}-->
692+
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"(short string) (true) String#endsWith","opsSec":11625226.05731926,"samples":5812614},{"name":"(short string) (true) String#slice and strict comparison","opsSec":11663983.314244892,"samples":5831992},{"name":"(long string) (true) String#endsWith","opsSec":11346505.525403365,"samples":5673253},{"name":"(long string) (true) String#slice and strict comparison","opsSec":11193376.79366014,"samples":5596689},{"name":"(short string) (false) String#endsWith","opsSec":11814962.3985006,"samples":5907482},{"name":"(short string) (false) String#slice and strict comparison","opsSec":12125120.369287344,"samples":6062561},{"name":"(long string) (false) String#endsWith","opsSec":11492343.159423016,"samples":5746172},{"name":"(long string) (false) String#slice and strict comparison","opsSec":11566593.970065638,"samples":5783299}]}-->
693693

694694
## String searching
695695

0 commit comments

Comments
 (0)