File tree Expand file tree Collapse file tree 5 files changed +67
-1
lines changed Expand file tree Collapse file tree 5 files changed +67
-1
lines changed Original file line number Diff line number Diff line change
1
+ ##===----------------------------------------------------------------------===##
2
+ ##
3
+ ## This source file is part of the Swift.org open source project
4
+ ##
5
+ ## Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
6
+ ## Licensed under Apache License v2.0 with Runtime Library Exception
7
+ ##
8
+ ## See https://swift.org/LICENSE.txt for license information
9
+ ##
10
+ ##===----------------------------------------------------------------------===##
11
+
1
12
import string
2
13
import random
3
14
Original file line number Diff line number Diff line change
1
+ ##===----------------------------------------------------------------------===##
2
+ ##
3
+ ## This source file is part of the Swift.org open source project
4
+ ##
5
+ ## Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
6
+ ## Licensed under Apache License v2.0 with Runtime Library Exception
7
+ ##
8
+ ## See https://swift.org/LICENSE.txt for license information
9
+ ##
10
+ ##===----------------------------------------------------------------------===##
11
+
1
12
# python3 generateEmails.py > output.txt
2
13
3
14
import string
Original file line number Diff line number Diff line change
1
+ ##===----------------------------------------------------------------------===##
2
+ ##
3
+ ## This source file is part of the Swift.org open source project
4
+ ##
5
+ ## Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
6
+ ## Licensed under Apache License v2.0 with Runtime Library Exception
7
+ ##
8
+ ## See https://swift.org/LICENSE.txt for license information
9
+ ##
10
+ ##===----------------------------------------------------------------------===##
11
+
1
12
import string
2
13
import random
3
14
Original file line number Diff line number Diff line change
1
+ ##===----------------------------------------------------------------------===##
2
+ ##
3
+ ## This source file is part of the Swift.org open source project
4
+ ##
5
+ ## Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
6
+ ## Licensed under Apache License v2.0 with Runtime Library Exception
7
+ ##
8
+ ## See https://swift.org/LICENSE.txt for license information
9
+ ##
10
+ ##===----------------------------------------------------------------------===##
11
+
1
12
# Generates lines of junk unicode wrapped in html tags
2
13
import random
3
14
Original file line number Diff line number Diff line change
1
+ ##===----------------------------------------------------------------------===##
2
+ ##
3
+ ## This source file is part of the Swift.org open source project
4
+ ##
5
+ ## Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
6
+ ## Licensed under Apache License v2.0 with Runtime Library Exception
7
+ ##
8
+ ## See https://swift.org/LICENSE.txt for license information
9
+ ##
10
+ ##===----------------------------------------------------------------------===##
11
+
1
12
# python3 createBenchmark.py MyRegexBenchmark
2
13
# reference: https://github.com/apple/swift/blob/main/benchmark/scripts/create_benchmark.py
3
14
4
15
import argparse
5
16
import os
6
17
7
- template = """import _StringProcessing
18
+ template = """//===----------------------------------------------------------------------===//
19
+ //
20
+ // This source file is part of the Swift.org open source project
21
+ //
22
+ // Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
23
+ // Licensed under Apache License v2.0 with Runtime Library Exception
24
+ //
25
+ // See https://swift.org/LICENSE.txt for license information
26
+ //
27
+ //===----------------------------------------------------------------------===//
28
+
29
+ import _StringProcessing
8
30
9
31
extension BenchmarkRunner {{
10
32
mutating func add{name}() {{
You can’t perform that action at this time.
0 commit comments