Skip to content

Commit

Permalink
drop ananda-benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
nixzhu committed Sep 28, 2023
1 parent 415be41 commit f56e6e8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 159 deletions.
18 changes: 0 additions & 18 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@
"version" : "0.1.6"
}
},
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser",
"state" : {
"revision" : "8f4d2753f0e4778c76d5f05ad16c74f707390531",
"version" : "1.2.3"
}
},
{
"identity" : "swift-benchmark",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/swift-benchmark.git",
"state" : {
"revision" : "8163295f6fe82356b0bcf8e1ab991645de17d096",
"version" : "0.1.2"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
Expand Down
14 changes: 0 additions & 14 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ let package = Package(
url: "https://github.com/apple/swift-syntax.git",
from: "509.0.0"
),
.package(
url: "https://github.com/google/swift-benchmark.git",
from: "0.1.2"
),
],
targets: [
.macro(
Expand Down Expand Up @@ -75,15 +71,5 @@ let package = Package(
),
]
),
.executableTarget(
name: "ananda-benchmark",
dependencies: [
"Ananda",
.product(
name: "Benchmark",
package: "swift-benchmark"
),
]
),
]
)
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,7 @@ Simple and clean, right?

## Benchmark

Run `swift run -c release ananda-benchmark` with Xcode 15 RC.

```
name time std iterations
-------------------------------------------------------------
Codable decoding 18417.000 ns ± 7.15 % 74022
Ananda decoding 2667.000 ns ± 9.73 % 524924
Ananda decoding with Macro 2667.000 ns ± 7.48 % 521661
```

As you can see, Ananda decoding is way faster than Codable decoding.
See [AnandaBenchmark](https://github.com/nixzhu/AnandaBenchmark).

## Tool

Expand Down
116 changes: 0 additions & 116 deletions Sources/ananda-benchmark/main.swift

This file was deleted.

0 comments on commit f56e6e8

Please sign in to comment.