kkebo / zyphy

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

Zyphy

coverage

Zyphy is (or will be) a fast web browser engine written in Swift.

[!IMPORTANT] This package is under development.

Package Contents

Prerequisites

On Linux, you can easily install the toolchain using swiftly.

curl -L https://swift-server.github.io/swiftly/swiftly-install.sh | bash
swiftly install 6.0-snapshot

Building

swift build

[!WARNING] If you used swiftly to install Swift, you have to use swift-legacy-driver instead of swift until https://github.com/swift-server/swiftly/issues/92 is resolved.

swift-legacy-driver build

Testing

git submodule update --init --recursive
swift test --disable-xctest

[!WARNING] If you used swiftly to install Swift, you have to use swift-legacy-driver instead of swift until https://github.com/swift-server/swiftly/issues/92 is resolved.

git submodule update --init --recursive
swift-legacy-driver test --disable-xctest

Benchmarking

BENCHMARK_DISABLE_JEMALLOC=true swift package --package-path Benchmarks benchmark

[!WARNING] If you used swiftly to install Swift, you have to use swift-legacy-driver instead of swift until https://github.com/swift-server/swiftly/issues/92 is resolved.

BENCHMARK_DISABLE_JEMALLOC=true swift-legacy-driver package --package-path Benchmarks benchmark

For more details, please see https://github.com/ordo-one/package-benchmark.

The benchmark data are from html5ever, which is dual-licensed under the MIT license and the Apache 2.0 license.