Skip to content

Commit 37d9128

Browse files
committed
feat(benchmarks): add an option to display only a given benchmark
1 parent b9c2d55 commit 37d9128

4 files changed

Lines changed: 321 additions & 226 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ resources/
99
# MacOS config files
1010
.DS_Store
1111

12+
# IDE
13+
.idea

content/tools/benchmarks.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@ Values are computing the `mean` of multiple runs: `ArkScript.mean / Other.mean`.
2323

2424
In a perfect world, the graphs should always go down, or at least not up. An upward trend can mean that a performance regression was introduced.
2525

26-
<label for="data-quantity">Data quantity</label>&nbsp;
2726
<!-- Update the default value passed to showGraph() in /static/js/graph-benchmarks.js when the selected option changes -->
27+
<label for="data-quantity">Data quantity</label>&nbsp;
2828
<select name="data-quantity" id="data-quantity">
2929
<option value="all"> All</option>
3030
<option value="100elem"> Last 100 results</option>
3131
<option value="30elem" selected> Last 30 results</option>
3232
<option value="10elem"> Last 10 results</option>
3333
</select>
34+
35+
<label for="benchmark-name">Benchmark</label>&nbsp;
36+
<select name="benchmark-name" id="benchmark-name">
37+
</select>
3438
<div>
3539
<canvas id="linechart" />
3640
</div>

hugo_stats.json

Lines changed: 65 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -318,23 +318,30 @@
318318
"an-idea-a-question-a-suggestion-or-a-problem",
319319
"another-less-useful-bytecode-change",
320320
"any",
321+
"append",
322+
"append-1",
321323
"appendtofile",
322324
"arccos",
323325
"arcsin",
324326
"arctan",
327+
"argcount",
325328
"args",
326329
"arguments-attributes",
327330
"arkscript",
328331
"arkscript-bytecode-headers",
329332
"arkscript-guidelines",
330-
"arkscript-v412-documentation",
333+
"arkscript-v440-documentation",
334+
"as-is",
331335
"asciiletters",
332336
"asciilowercase",
333337
"asciiuppercase",
334338
"asinh",
339+
"asjson",
340+
"assert",
335341
"ast-lowerer",
336342
"ast-optimizer",
337343
"async",
344+
"at",
338345
"atanh",
339346
"await",
340347
"backtrace-generation",
@@ -344,6 +351,7 @@
344351
"basic-template-of-a-builtin",
345352
"before-starting",
346353
"bench",
354+
"benchmark-name",
347355
"better-andor-shortcircuiting-implementation",
348356
"better-error-messages-finally-at-runtime",
349357
"better-errors",
@@ -379,7 +387,10 @@
379387
"code-formatting",
380388
"code-segments",
381389
"coloring-arkscript-code",
390+
"combinations",
391+
"combinationswithreplacement",
382392
"comments",
393+
"comparison",
383394
"compile-time-evaluation-of-function-calls",
384395
"compiler",
385396
"compiler-ire",
@@ -391,13 +402,14 @@
391402
"complex-mul",
392403
"complex-sub",
393404
"compose",
405+
"concat",
406+
"concat-1",
394407
"condition-macros",
395408
"conditions",
396409
"consoleclear",
397410
"consolecolor",
398411
"constructing-a-vm",
399412
"contains",
400-
"contains-1",
401413
"containsanyof",
402414
"contiguous-storage-for-our-locals",
403415
"contributing-to-the-language-arkscript",
@@ -439,6 +451,7 @@
439451
"e",
440452
"emit",
441453
"emitwith",
454+
"empty",
442455
"emptyorwhitespace",
443456
"endswith",
444457
"entries",
@@ -447,7 +460,6 @@
447460
"euclideandistance",
448461
"eval",
449462
"even",
450-
"even-1",
451463
"evolution-between-versions",
452464
"example",
453465
"example-1",
@@ -489,8 +501,24 @@
489501
"example-42",
490502
"example-43",
491503
"example-44",
504+
"example-45",
505+
"example-46",
506+
"example-47",
507+
"example-48",
508+
"example-49",
492509
"example-5",
510+
"example-50",
511+
"example-51",
512+
"example-52",
513+
"example-53",
514+
"example-54",
515+
"example-55",
516+
"example-56",
517+
"example-57",
518+
"example-58",
519+
"example-59",
493520
"example-6",
521+
"example-60",
494522
"example-7",
495523
"example-8",
496524
"example-9",
@@ -542,8 +570,14 @@
542570
"h-rh-i-3",
543571
"handling-type-error",
544572
"handling-wrong-arguments-count",
573+
"hasfield",
545574
"hashmd5",
546575
"hashsha256",
576+
"head",
577+
"heading",
578+
"heading-1",
579+
"heading-2",
580+
"heading-3",
547581
"hexdigits",
548582
"homepage-logo",
549583
"how-can-we-do-better",
@@ -590,11 +624,12 @@
590624
"keys",
591625
"lcm",
592626
"left",
627+
"len",
593628
"lerp",
629+
"levenshteindistance",
594630
"linechart",
595631
"linux-and-derivatives",
596632
"list-improvements",
597-
"list-operators",
598633
"listfiles",
599634
"ln",
600635
"locals-as-a-list-of-pair-of-id-and-value",
@@ -616,6 +651,7 @@
616651
"memory-requirements",
617652
"min",
618653
"misc",
654+
"mod",
619655
"modules-c",
620656
"modules-resolution",
621657
"mordor-erm-more-documentation",
@@ -635,11 +671,12 @@
635671
"nav-tabContent",
636672
"negate",
637673
"new-instructions-and-performance-improvements",
674+
"nil",
638675
"none",
676+
"not",
639677
"note-on-builtins",
640678
"octdigits",
641679
"odd",
642-
"odd-1",
643680
"offcanvasNavMain",
644681
"offcanvasNavMainLabel",
645682
"offcanvasNavSection",
@@ -681,8 +718,6 @@
681718
"parameter-35",
682719
"parameter-36",
683720
"parameter-37",
684-
"parameter-38",
685-
"parameter-39",
686721
"parameter-4",
687722
"parameter-5",
688723
"parameter-6",
@@ -715,7 +750,20 @@
715750
"parameters-3",
716751
"parameters-30",
717752
"parameters-31",
753+
"parameters-32",
754+
"parameters-33",
755+
"parameters-34",
756+
"parameters-35",
757+
"parameters-36",
758+
"parameters-37",
759+
"parameters-38",
760+
"parameters-39",
718761
"parameters-4",
762+
"parameters-40",
763+
"parameters-41",
764+
"parameters-42",
765+
"parameters-43",
766+
"parameters-44",
719767
"parameters-5",
720768
"parameters-6",
721769
"parameters-7",
@@ -732,6 +780,8 @@
732780
"pi",
733781
"placing-breakpoints",
734782
"platform",
783+
"pop",
784+
"pop-1",
735785
"pow",
736786
"precisions",
737787
"prime",
@@ -765,13 +815,15 @@
765815
"repl-controls",
766816
"repl-read-eval-print-loop",
767817
"replace",
818+
"repr",
768819
"results",
769820
"return",
770821
"reverse",
771822
"right",
772823
"round",
773824
"rstrip",
774825
"running-arkscript-code-online",
826+
"running-code",
775827
"running-code-while-taking-care-of-exceptions",
776828
"running-functions-asynchronously",
777829
"running-the-test-suites",
@@ -791,7 +843,6 @@
791843
"sin",
792844
"single-stack",
793845
"sinh",
794-
"size",
795846
"sleep",
796847
"slice",
797848
"socialMenu",
@@ -813,6 +864,7 @@
813864
"switch",
814865
"switching-to-c20",
815866
"symbols-table",
867+
"symcat",
816868
"syntax",
817869
"syntax-wise",
818870
"tabs-test-0",
@@ -821,13 +873,13 @@
821873
"tabs-test-1-tab",
822874
"tabs-test-2",
823875
"tabs-test-2-tab",
876+
"tail",
824877
"take",
825878
"takewhile",
826879
"tan",
827880
"tanh",
828881
"tasks-done",
829882
"tau",
830-
"test-operator",
831883
"testcase",
832884
"testeq",
833885
"testexpect",
@@ -845,13 +897,16 @@
845897
"toTop",
846898
"toc",
847899
"tolower",
900+
"tonumber",
848901
"tooling-here-we-go",
902+
"tostring",
849903
"toupper",
850904
"transpose",
851905
"troubleshooting",
852906
"try",
853-
"type-operators",
907+
"type",
854908
"type-system",
909+
"undef",
855910
"understanding-the-different-test-suites",
856911
"unique",
857912
"unless",

0 commit comments

Comments
 (0)