kkebo / zyphy

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

refactor: use string literals #84

Closed kkebo closed 2 weeks ago

github-actions[bot] commented 1 month ago

Code Metrics Report

main (cd73634) #84 (a34863a) +/-
Coverage 89.1% 89.1% 0.0%
Details ``` diff | | main (cd73634) | #84 (a34863a) | +/- | |-----------|----------------|---------------|------| | Coverage | 89.1% | 89.1% | 0.0% | | Files | 9 | 9 | 0 | | Lines | 1608 | 1608 | 0 | | Covered | 1434 | 1434 | 0 | ```

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

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

Reported by octocov

github-actions[bot] commented 2 weeks ago

Code Metrics Report

main (6387067) #84 (de3d132) +/-
Coverage 85.1% 85.1% 0.0%
Details ``` diff | | main (6387067) | #84 (de3d132) | +/- | |-----------|----------------|---------------|------| | Coverage | 85.1% | 85.1% | 0.0% | | Files | 9 | 9 | 0 | | Lines | 1608 | 1608 | 0 | | Covered | 1369 | 1369 | 0 | ```

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

Files Coverage +/-
Sources/Tokenizer/Tokenizer.swift 82.3% 0.0%

Reported by octocov

github-actions[bot] commented 2 weeks ago

Code Metrics Report

main (6387067) #84 (f19fb75) +/-
Coverage 85.1% 85.1% +0.0%
Details ``` diff | | main (6387067) | #84 (f19fb75) | +/- | |-----------|----------------|---------------|-------| + | Coverage | 85.1% | 85.1% | +0.0% | | Files | 9 | 9 | 0 | | Lines | 1608 | 1612 | +4 | + | Covered | 1369 | 1373 | +4 | ```

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

Files Coverage +/-
Sources/Tokenizer/Str.swift 53.8% +20.5%
Sources/Tokenizer/Tokenizer.swift 82.3% 0.0%

Reported by octocov

kkebo commented 2 weeks 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 Mon May 27 16:05:41 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 | 16 | 16 | 16 | 16 | 17 | 17 | 18 | 100 | | Current_run | 15 | 15 | 15 | 15 | 15 | 16 | 16 | 100 | | Δ | -1 | -1 | -1 | -1 | -2 | -1 | -2 | 0 | | Improvement % | 6 | 6 | 6 | 6 | 12 | 6 | 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 | 1570 | 1577 | 1581 | 1590 | 1638 | 1775 | 1972 | 100 | | Current_run | 1557 | 1563 | 1567 | 1582 | 1623 | 1940 | 1942 | 100 | | Δ | -13 | -14 | -14 | -8 | -15 | 165 | -30 | 0 | | Improvement % | 1 | 1 | 1 | 1 | 1 | -9 | 2 | 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 | 44 | 44 | 44 | 44 | 44 | 47 | 47 | 100 | | Current_run | 44 | 44 | 44 | 44 | 44 | 47 | 47 | 100 | | Δ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | Improvement % | 0 | 0 | 0 | 0 | 0 | 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 | 4660 | 4665 | 4669 | 4674 | 4678 | 4824 | 4824 | 100 | | Current_run | 4637 | 4641 | 4645 | 4649 | 4653 | 4805 | 4806 | 100 | | Δ | -23 | -24 | -24 | -25 | -25 | -19 | -18 | 0 | | Improvement % | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 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 | 20 | 20 | 20 | 20 | 20 | 21 | 21 | 100 | | Current_run | 20 | 20 | 20 | 20 | 20 | 22 | 26 | 100 | | Δ | 0 | 0 | 0 | 0 | 0 | 1 | 5 | 0 | | Improvement % | 0 | 0 | 0 | 0 | 0 | -5 | -24 | 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 | 459 | 465 | 472 | 497 | 535 | 537 | 538 | 100 | | Current_run | 469 | 475 | 492 | 509 | 585 | 636 | 642 | 100 | | Δ | 10 | 10 | 20 | 12 | 50 | 99 | 104 | 0 | | Improvement % | -2 | -2 | -4 | -2 | -9 | -18 | -19 | 0 |