kkebo / zyphy

Zyphy is (or will be) a fast web browser engine written in Swift.
MIT License
4 stars 2 forks source link

feat: `Str` conforms to `ExpressibleByStringLiteral` #71

Closed kkebo closed 4 months ago

kkebo commented 4 months ago

Comparing results between 'main' and 'Current_run'

Host 'Brown-rhinoceros-beetle' with 8 'aarch64' processors with 7 GB memory, running:
#1 SMP PREEMPT_DYNAMIC Wed May  8 18:05:42 UTC 2024

MyBenchmark

lipsum metrics

Time (wall clock): results within specified thresholds, fold down for details.

``` ╒══════════════════════════════════════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╕ │ Time (wall clock) (μs) * │ p0 │ p25 │ p50 │ p75 │ p90 │ p99 │ p100 │ Samples │ ╞══════════════════════════════════════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╡ │ main │ 17 │ 17 │ 17 │ 17 │ 17 │ 18 │ 18 │ 100 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Current_run │ 15 │ 15 │ 16 │ 16 │ 16 │ 16 │ 16 │ 100 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Δ │ -2 │ -2 │ -1 │ -1 │ -1 │ -2 │ -2 │ 0 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Improvement % │ 12 │ 12 │ 6 │ 6 │ 6 │ 11 │ 11 │ 0 │ ╘══════════════════════════════════════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╛ ```

lipsum-zh metrics

Time (wall clock): results within specified thresholds, fold down for details.

``` ╒══════════════════════════════════════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╕ │ Time (wall clock) (ns) * │ p0 │ p25 │ p50 │ p75 │ p90 │ p99 │ p100 │ Samples │ ╞══════════════════════════════════════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╡ │ main │ 2114 │ 2126 │ 2130 │ 2138 │ 2206 │ 2300 │ 2300 │ 100 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Current_run │ 2110 │ 2116 │ 2120 │ 2122 │ 2130 │ 2374 │ 2456 │ 100 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Δ │ -4 │ -10 │ -10 │ -16 │ -76 │ 74 │ 156 │ 0 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Improvement % │ 0 │ 0 │ 0 │ 1 │ 3 │ -3 │ -7 │ 0 │ ╘══════════════════════════════════════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╛ ```

medium-fragment metrics

Time (wall clock): results within specified thresholds, fold down for details.

``` ╒══════════════════════════════════════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╕ │ Time (wall clock) (μs) * │ p0 │ p25 │ p50 │ p75 │ p90 │ p99 │ p100 │ Samples │ ╞══════════════════════════════════════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╡ │ main │ 50 │ 50 │ 50 │ 50 │ 51 │ 53 │ 53 │ 100 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Current_run │ 50 │ 50 │ 50 │ 50 │ 50 │ 53 │ 53 │ 100 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Δ │ 0 │ 0 │ 0 │ 0 │ -1 │ 0 │ 0 │ 0 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Improvement % │ 0 │ 0 │ 0 │ 0 │ 2 │ 0 │ 0 │ 0 │ ╘══════════════════════════════════════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╛ ```

small-fragment metrics

Time (wall clock): results within specified thresholds, fold down for details.

``` ╒══════════════════════════════════════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╕ │ Time (wall clock) (ns) * │ p0 │ p25 │ p50 │ p75 │ p90 │ p99 │ p100 │ Samples │ ╞══════════════════════════════════════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╡ │ main │ 5334 │ 5345 │ 5362 │ 5382 │ 5415 │ 5560 │ 5560 │ 100 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Current_run │ 5338 │ 5358 │ 5382 │ 5390 │ 5411 │ 5579 │ 5608 │ 100 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Δ │ 4 │ 13 │ 20 │ 8 │ -4 │ 19 │ 48 │ 0 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Improvement % │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ -1 │ 0 │ ╘══════════════════════════════════════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╛ ```

strong metrics

Time (wall clock): results within specified thresholds, fold down for details.

``` ╒══════════════════════════════════════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╕ │ Time (wall clock) (μs) * │ p0 │ p25 │ p50 │ p75 │ p90 │ p99 │ p100 │ Samples │ ╞══════════════════════════════════════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╡ │ main │ 22 │ 23 │ 23 │ 23 │ 23 │ 24 │ 24 │ 100 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Current_run │ 24 │ 24 │ 24 │ 24 │ 24 │ 25 │ 25 │ 100 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Δ │ 2 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 0 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Improvement % │ -9 │ -4 │ -4 │ -4 │ -4 │ -4 │ -4 │ 0 │ ╘══════════════════════════════════════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╛ ```

tiny-fragment metrics

Time (wall clock): results within specified thresholds, fold down for details.

``` ╒══════════════════════════════════════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╤═════════╕ │ Time (wall clock) (ns) * │ p0 │ p25 │ p50 │ p75 │ p90 │ p99 │ p100 │ Samples │ ╞══════════════════════════════════════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╪═════════╡ │ main │ 528 │ 531 │ 568 │ 614 │ 657 │ 713 │ 715 │ 100 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Current_run │ 528 │ 530 │ 533 │ 543 │ 569 │ 573 │ 573 │ 100 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Δ │ 0 │ -1 │ -35 │ -71 │ -88 │ -140 │ -142 │ 0 │ ├──────────────────────────────────────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤ │ Improvement % │ 0 │ 0 │ 6 │ 12 │ 13 │ 20 │ 20 │ 0 │ ╘══════════════════════════════════════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╧═════════╛ ```

github-actions[bot] commented 4 months ago

Code Metrics Report

main (fc03ea9) #71 (573812b) +/-
Coverage 89.5% 89.1% -0.4%
Details ``` diff | | main (fc03ea9) | #71 (573812b) | +/- | |-----------|----------------|---------------|-------| - | Coverage | 89.5% | 89.1% | -0.4% | | Files | 9 | 9 | 0 | | Lines | 1601 | 1603 | +2 | - | Covered | 1433 | 1429 | -4 | ```

Code coverage of files in pull request scope (87.3% → 86.9%)

Files Coverage +/-
Sources/Tokenizer/Str.swift 33.3% -66.7%
Sources/Tokenizer/Tokenizer.swift 87.3% 0.0%

Reported by octocov

github-actions[bot] commented 4 months ago

Code Metrics Report

main (fc03ea9) #71 (30c93c5) +/-
Coverage 89.5% 89.1% -0.4%
Details ``` diff | | main (fc03ea9) | #71 (30c93c5) | +/- | |-----------|----------------|---------------|-------| - | Coverage | 89.5% | 89.1% | -0.4% | | Files | 9 | 9 | 0 | | Lines | 1601 | 1603 | +2 | - | Covered | 1433 | 1429 | -4 | ```

Code coverage of files in pull request scope (87.3% → 86.9%)

Files Coverage +/-
Sources/Tokenizer/Str.swift 33.3% -66.7%
Sources/Tokenizer/Tokenizer.swift 87.3% 0.0%

Reported by octocov

github-actions[bot] commented 4 months ago

Code Metrics Report

main (0638b6b) #71 (e2c330f) +/-
Coverage 89.5% 89.2% -0.4%
Details ``` diff | | main (0638b6b) | #71 (e2c330f) | +/- | |-----------|----------------|---------------|-------| - | Coverage | 89.5% | 89.2% | -0.4% | | Files | 9 | 9 | 0 | | Lines | 1607 | 1609 | +2 | - | Covered | 1439 | 1435 | -4 | ```

Code coverage of files in pull request scope (87.4% → 86.9%)

Files Coverage +/-
Sources/Tokenizer/Str.swift 33.3% -66.7%
Sources/Tokenizer/Tokenizer.swift 87.3% 0.0%

Reported by octocov