Skip to content

Commit

Permalink
chore(string-startsWith.mjs): update benchmark results
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user authored and github-actions[bot] committed Sep 26, 2024
1 parent 3b72eef commit 8f9a83c
Show file tree
Hide file tree
Showing 28 changed files with 348 additions and 230 deletions.
20 changes: 10 additions & 10 deletions RESULTS-v18.md
Original file line number Diff line number Diff line change
Expand Up @@ -717,25 +717,25 @@ new Array(length)|100,000,000|4,473.702ms

|name|ops/sec|samples|
|-|-|-|
|(short string) (true) String#startsWith|14,014,742|7007372|
|(short string) (true) String#slice and strict comparison|12,682,673|6341337|
|(long string) (true) String#startsWith|13,198,303|6599152|
|(long string) (true) String#slice and strict comparison|12,197,428|6098715|
|(short string) (false) String#startsWith|14,558,327|7279164|
|(short string) (false) String#slice and strict comparison|12,812,689|6406346|
|(long string) (false) String#startsWith|14,612,002|7306002|
|(long string) (false) String#slice and strict comparison|12,619,271|6309636|
|(short string) (true) String#startsWith|13,100,701|6550351|
|(short string) (true) String#slice and strict comparison|12,143,875|6071938|
|(long string) (true) String#startsWith|12,549,261|6274631|
|(long string) (true) String#slice and strict comparison|11,246,120|5623061|
|(short string) (false) String#startsWith|13,918,737|6959369|
|(short string) (false) String#slice and strict comparison|11,915,181|5957591|
|(long string) (false) String#startsWith|13,881,808|6940905|
|(long string) (false) String#slice and strict comparison|11,645,075|5822538|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem
* __Run:__ Mon Sep 02 2024 19:18:07 GMT+0000 (Coordinated Universal Time)
* __Run:__ Thu Sep 26 2024 00:01:35 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.588970184326172},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":14014742.460148223,"samples":7007372},{"name":"(short string) (true) String#slice and strict comparison","opsSec":12682673.154474143,"samples":6341337},{"name":"(long string) (true) String#startsWith","opsSec":13198303.786416322,"samples":6599152},{"name":"(long string) (true) String#slice and strict comparison","opsSec":12197428.489336269,"samples":6098715},{"name":"(short string) (false) String#startsWith","opsSec":14558327.016520746,"samples":7279164},{"name":"(short string) (false) String#slice and strict comparison","opsSec":12812689.752252273,"samples":6406346},{"name":"(long string) (false) String#startsWith","opsSec":14612002.470514845,"samples":7306002},{"name":"(long string) (false) String#slice and strict comparison","opsSec":12619271.543622553,"samples":6309636}]}-->
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":13100701.85895668,"samples":6550351},{"name":"(short string) (true) String#slice and strict comparison","opsSec":12143875.286211787,"samples":6071938},{"name":"(long string) (true) String#startsWith","opsSec":12549261.314743755,"samples":6274631},{"name":"(long string) (true) String#slice and strict comparison","opsSec":11246120.866235752,"samples":5623061},{"name":"(short string) (false) String#startsWith","opsSec":13918737.410346592,"samples":6959369},{"name":"(short string) (false) String#slice and strict comparison","opsSec":11915181.43796535,"samples":5957591},{"name":"(long string) (false) String#startsWith","opsSec":13881808.814720444,"samples":6940905},{"name":"(long string) (false) String#slice and strict comparison","opsSec":11645075.962431803,"samples":5822538}]}-->

## Super vs This

Expand Down
20 changes: 10 additions & 10 deletions RESULTS-v20.md
Original file line number Diff line number Diff line change
Expand Up @@ -717,25 +717,25 @@ new Array(length)|100,000,000|4,323.708ms

|name|ops/sec|samples|
|-|-|-|
|(short string) (true) String#startsWith|17,293,776|8646889|
|(short string) (true) String#slice and strict comparison|15,161,007|7580504|
|(long string) (true) String#startsWith|16,711,279|8355640|
|(long string) (true) String#slice and strict comparison|14,038,766|7019384|
|(short string) (false) String#startsWith|18,418,756|9209379|
|(short string) (false) String#slice and strict comparison|15,349,438|7674720|
|(long string) (false) String#startsWith|18,319,288|9159645|
|(long string) (false) String#slice and strict comparison|14,476,633|7238317|
|(short string) (true) String#startsWith|15,972,663|7986332|
|(short string) (true) String#slice and strict comparison|13,891,493|6945747|
|(long string) (true) String#startsWith|15,291,957|7645979|
|(long string) (true) String#slice and strict comparison|13,556,044|6778023|
|(short string) (false) String#startsWith|16,447,381|8223691|
|(short string) (false) String#slice and strict comparison|14,105,236|7052619|
|(long string) (false) String#startsWith|16,954,499|8477250|
|(long string) (false) String#slice and strict comparison|13,569,198|6784600|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem
* __Run:__ Mon Sep 02 2024 19:24:36 GMT+0000 (Coordinated Universal Time)
* __Run:__ Thu Sep 26 2024 00:08:07 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.588970184326172},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":17293776.339597218,"samples":8646889},{"name":"(short string) (true) String#slice and strict comparison","opsSec":15161007.424045445,"samples":7580504},{"name":"(long string) (true) String#startsWith","opsSec":16711279.632666886,"samples":8355640},{"name":"(long string) (true) String#slice and strict comparison","opsSec":14038766.146573149,"samples":7019384},{"name":"(short string) (false) String#startsWith","opsSec":18418756.71119022,"samples":9209379},{"name":"(short string) (false) String#slice and strict comparison","opsSec":15349438.311351253,"samples":7674720},{"name":"(long string) (false) String#startsWith","opsSec":18319288.424328998,"samples":9159645},{"name":"(long string) (false) String#slice and strict comparison","opsSec":14476633.971138151,"samples":7238317}]}-->
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":15972663.744463444,"samples":7986332},{"name":"(short string) (true) String#slice and strict comparison","opsSec":13891493.777733698,"samples":6945747},{"name":"(long string) (true) String#startsWith","opsSec":15291957.602771686,"samples":7645979},{"name":"(long string) (true) String#slice and strict comparison","opsSec":13556044.427024085,"samples":6778023},{"name":"(short string) (false) String#startsWith","opsSec":16447381.40866714,"samples":8223691},{"name":"(short string) (false) String#slice and strict comparison","opsSec":14105236.420074234,"samples":7052619},{"name":"(long string) (false) String#startsWith","opsSec":16954499.593173537,"samples":8477250},{"name":"(long string) (false) String#slice and strict comparison","opsSec":13569198.615861697,"samples":6784600}]}-->

## Super vs This

Expand Down
20 changes: 10 additions & 10 deletions RESULTS-v21.md
Original file line number Diff line number Diff line change
Expand Up @@ -717,25 +717,25 @@ new Array(length)|100,000,000|4,646.55ms

|name|ops/sec|samples|
|-|-|-|
|(short string) (true) String#startsWith|14,813,247|7406624|
|(short string) (true) String#slice and strict comparison|12,717,336|6358669|
|(long string) (true) String#startsWith|14,187,912|7093957|
|(long string) (true) String#slice and strict comparison|12,599,454|6299728|
|(short string) (false) String#startsWith|13,931,437|6965719|
|(short string) (false) String#slice and strict comparison|12,981,415|6490708|
|(long string) (false) String#startsWith|15,434,653|7717327|
|(long string) (false) String#slice and strict comparison|12,360,300|6180151|
|(short string) (true) String#startsWith|14,162,201|7081101|
|(short string) (true) String#slice and strict comparison|12,904,780|6452391|
|(long string) (true) String#startsWith|13,664,667|6832334|
|(long string) (true) String#slice and strict comparison|12,372,579|6186290|
|(short string) (false) String#startsWith|14,747,169|7373585|
|(short string) (false) String#slice and strict comparison|12,736,573|6368287|
|(long string) (false) String#startsWith|12,845,476|6422739|
|(long string) (false) String#slice and strict comparison|12,207,917|6103959|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem
* __Run:__ Mon Sep 02 2024 19:28:25 GMT+0000 (Coordinated Universal Time)
* __Run:__ Thu Sep 26 2024 00:12:00 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.588970184326172},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":14813247.792625455,"samples":7406624},{"name":"(short string) (true) String#slice and strict comparison","opsSec":12717336.44847101,"samples":6358669},{"name":"(long string) (true) String#startsWith","opsSec":14187912.354419427,"samples":7093957},{"name":"(long string) (true) String#slice and strict comparison","opsSec":12599454.36194827,"samples":6299728},{"name":"(short string) (false) String#startsWith","opsSec":13931437.192101046,"samples":6965719},{"name":"(short string) (false) String#slice and strict comparison","opsSec":12981415.818462057,"samples":6490708},{"name":"(long string) (false) String#startsWith","opsSec":15434653.259021843,"samples":7717327},{"name":"(long string) (false) String#slice and strict comparison","opsSec":12360300.220033428,"samples":6180151}]}-->
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":14162201.716588836,"samples":7081101},{"name":"(short string) (true) String#slice and strict comparison","opsSec":12904780.373998063,"samples":6452391},{"name":"(long string) (true) String#startsWith","opsSec":13664667.562487697,"samples":6832334},{"name":"(long string) (true) String#slice and strict comparison","opsSec":12372579.307927342,"samples":6186290},{"name":"(short string) (false) String#startsWith","opsSec":14747169.056106608,"samples":7373585},{"name":"(short string) (false) String#slice and strict comparison","opsSec":12736573.21013258,"samples":6368287},{"name":"(long string) (false) String#startsWith","opsSec":12845476.612675158,"samples":6422739},{"name":"(long string) (false) String#slice and strict comparison","opsSec":12207917.487547088,"samples":6103959}]}-->

## Super vs This

Expand Down
24 changes: 24 additions & 0 deletions RESULTS-v22.md
Original file line number Diff line number Diff line change
Expand Up @@ -673,3 +673,27 @@ new Array(length)|100,000,000|4,868.68ms

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"Using includes","opsSec":8276426.441121334,"samples":4138215},{"name":"Using indexof","opsSec":8118718.489909284,"samples":4059360},{"name":"Using RegExp.test","opsSec":7577325.136173781,"samples":3788663},{"name":"Using RegExp.text with cached regex pattern","opsSec":7667493.248640247,"samples":3833747},{"name":"Using new RegExp.test","opsSec":3511989.9367909315,"samples":1755995},{"name":"Using new RegExp.test with cached regex pattern","opsSec":3875500.395550809,"samples":1937751}]}-->

## startsWith comparison

|name|ops/sec|samples|
|-|-|-|
|(short string) (true) String#startsWith|14,839,575|7419788|
|(short string) (true) String#slice and strict comparison|13,520,249|6760125|
|(long string) (true) String#startsWith|13,918,991|6959496|
|(long string) (true) String#slice and strict comparison|12,820,188|6410095|
|(short string) (false) String#startsWith|14,443,535|7221768|
|(short string) (false) String#slice and strict comparison|12,879,516|6439759|
|(long string) (false) String#startsWith|14,293,181|7146591|
|(long string) (false) String#slice and strict comparison|12,828,579|6414290|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem
* __Run:__ Thu Sep 26 2024 00:15:50 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":14839575.228256207,"samples":7419788},{"name":"(short string) (true) String#slice and strict comparison","opsSec":13520249.51329102,"samples":6760125},{"name":"(long string) (true) String#startsWith","opsSec":13918991.860950803,"samples":6959496},{"name":"(long string) (true) String#slice and strict comparison","opsSec":12820188.666810557,"samples":6410095},{"name":"(short string) (false) String#startsWith","opsSec":14443535.653686063,"samples":7221768},{"name":"(short string) (false) String#slice and strict comparison","opsSec":12879516.402831282,"samples":6439759},{"name":"(long string) (false) String#startsWith","opsSec":14293181.59973171,"samples":7146591},{"name":"(long string) (false) String#slice and strict comparison","opsSec":12828579.974127775,"samples":6414290}]}-->
20 changes: 10 additions & 10 deletions v18/RESULTS-v18_0_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -717,25 +717,25 @@ new Array(length)|100,000,000|4,535.07ms

|name|ops/sec|samples|
|-|-|-|
|(short string) (true) String#startsWith|14,117,958|7058980|
|(short string) (true) String#slice and strict comparison|14,510,834|7255418|
|(long string) (true) String#startsWith|14,080,252|7040127|
|(long string) (true) String#slice and strict comparison|13,819,952|6909977|
|(short string) (false) String#startsWith|7,666,575|3833288|
|(short string) (false) String#slice and strict comparison|14,954,484|7477243|
|(long string) (false) String#startsWith|6,827,136|3413569|
|(long string) (false) String#slice and strict comparison|14,124,000|7062001|
|(short string) (true) String#startsWith|13,829,823|6914912|
|(short string) (true) String#slice and strict comparison|13,749,487|6874744|
|(long string) (true) String#startsWith|13,654,870|6827436|
|(long string) (true) String#slice and strict comparison|13,432,575|6716288|
|(short string) (false) String#startsWith|14,270,679|7135340|
|(short string) (false) String#slice and strict comparison|14,377,077|7188540|
|(long string) (false) String#startsWith|13,994,789|6997395|
|(long string) (false) String#slice and strict comparison|14,093,322|7046662|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem
* __Run:__ Mon Sep 02 2024 19:19:22 GMT+0000 (Coordinated Universal Time)
* __Run:__ Thu Sep 26 2024 00:02:54 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.588970184326172},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":14117958.588180244,"samples":7058980},{"name":"(short string) (true) String#slice and strict comparison","opsSec":14510834.52845841,"samples":7255418},{"name":"(long string) (true) String#startsWith","opsSec":14080252.539707696,"samples":7040127},{"name":"(long string) (true) String#slice and strict comparison","opsSec":13819952.513985017,"samples":6909977},{"name":"(short string) (false) String#startsWith","opsSec":7666575.0524862185,"samples":3833288},{"name":"(short string) (false) String#slice and strict comparison","opsSec":14954484.858951932,"samples":7477243},{"name":"(long string) (false) String#startsWith","opsSec":6827136.786079739,"samples":3413569},{"name":"(long string) (false) String#slice and strict comparison","opsSec":14124000.462770889,"samples":7062001}]}-->
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":13829823.57403175,"samples":6914912},{"name":"(short string) (true) String#slice and strict comparison","opsSec":13749487.931261642,"samples":6874744},{"name":"(long string) (true) String#startsWith","opsSec":13654870.877131864,"samples":6827436},{"name":"(long string) (true) String#slice and strict comparison","opsSec":13432575.667532621,"samples":6716288},{"name":"(short string) (false) String#startsWith","opsSec":14270679.30910115,"samples":7135340},{"name":"(short string) (false) String#slice and strict comparison","opsSec":14377077.829369416,"samples":7188540},{"name":"(long string) (false) String#startsWith","opsSec":13994789.007877579,"samples":6997395},{"name":"(long string) (false) String#slice and strict comparison","opsSec":14093322.733763555,"samples":7046662}]}-->

## Super vs This

Expand Down
20 changes: 10 additions & 10 deletions v18/RESULTS-v18_20_3.md
Original file line number Diff line number Diff line change
Expand Up @@ -717,25 +717,25 @@ new Array(length)|100,000,000|4,491.991ms

|name|ops/sec|samples|
|-|-|-|
|(short string) (true) String#startsWith|13,517,399|6758700|
|(short string) (true) String#slice and strict comparison|12,148,508|6074255|
|(long string) (true) String#startsWith|12,809,064|6404533|
|(long string) (true) String#slice and strict comparison|11,483,718|5741860|
|(short string) (false) String#startsWith|14,540,954|7270478|
|(short string) (false) String#slice and strict comparison|12,588,872|6294437|
|(long string) (false) String#startsWith|14,081,865|7040933|
|(long string) (false) String#slice and strict comparison|11,859,161|5929582|
|(short string) (true) String#startsWith|13,892,074|6946038|
|(short string) (true) String#slice and strict comparison|12,263,112|6131560|
|(long string) (true) String#startsWith|12,771,889|6385945|
|(long string) (true) String#slice and strict comparison|11,605,111|5802556|
|(short string) (false) String#startsWith|14,539,218|7269610|
|(short string) (false) String#slice and strict comparison|12,413,866|6206934|
|(long string) (false) String#startsWith|13,947,271|6973636|
|(long string) (false) String#slice and strict comparison|11,964,876|5982439|


<details>
<summary>Environment</summary>

* __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem
* __Run:__ Mon Sep 02 2024 19:20:39 GMT+0000 (Coordinated Universal Time)
* __Run:__ Thu Sep 26 2024 00:04:12 GMT+0000 (Coordinated Universal Time)
</details>

<!--
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.588970184326172},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":13517399.345872488,"samples":6758700},{"name":"(short string) (true) String#slice and strict comparison","opsSec":12148508.558573434,"samples":6074255},{"name":"(long string) (true) String#startsWith","opsSec":12809064.763735406,"samples":6404533},{"name":"(long string) (true) String#slice and strict comparison","opsSec":11483718.849811908,"samples":5741860},{"name":"(short string) (false) String#startsWith","opsSec":14540954.500269404,"samples":7270478},{"name":"(short string) (false) String#slice and strict comparison","opsSec":12588872.432976814,"samples":6294437},{"name":"(long string) (false) String#startsWith","opsSec":14081865.535108013,"samples":7040933},{"name":"(long string) (false) String#slice and strict comparison","opsSec":11859161.422872772,"samples":5929582}]}-->
{"environment":{"platform":"linux","arch":"x64","cpus":4,"totalMemory":7.597896575927734},"benchmarks":[{"name":"(short string) (true) String#startsWith","opsSec":13892074.796869239,"samples":6946038},{"name":"(short string) (true) String#slice and strict comparison","opsSec":12263112.689792937,"samples":6131560},{"name":"(long string) (true) String#startsWith","opsSec":12771889.430193946,"samples":6385945},{"name":"(long string) (true) String#slice and strict comparison","opsSec":11605111.795251304,"samples":5802556},{"name":"(short string) (false) String#startsWith","opsSec":14539218.37749889,"samples":7269610},{"name":"(short string) (false) String#slice and strict comparison","opsSec":12413866.81547397,"samples":6206934},{"name":"(long string) (false) String#startsWith","opsSec":13947271.17688716,"samples":6973636},{"name":"(long string) (false) String#slice and strict comparison","opsSec":11964876.903780496,"samples":5982439}]}-->

## Super vs This

Expand Down
Loading

0 comments on commit 8f9a83c

Please sign in to comment.