Skip to content

Commit 9b332ef

Browse files
added division results to README for 1.0.16
1 parent 92aa2d7 commit 9b332ef

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.swiftpm/xcode/xcshareddata/xcschemes/huge-numbers.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</BuildActionEntries>
5252
</BuildAction>
5353
<TestAction
54-
buildConfiguration = "Debug"
54+
buildConfiguration = "Release"
5555
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5656
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
5757
shouldUseLaunchSchemeArgsEnv = "YES"

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ The tables below display the nanoseconds longer it took this library to calculat
5656
|1.0.6 |DEBUG |8237502387529357 |397653549738 |~2,800 |~2,400 |~43,000\* |~225,000 |
5757
|1.0.13 |DEBUG |8237502387529357 |397653549738 |~2,450 |~2,350 |~38,100\* |~208,700 |
5858
|1.0.14 |RELEASE |8237502387529357 |397653549738 |~170 |~200 |~3,950\* |~15,400 |
59+
|1.0.16 |RELEASE |8237502387529357 |397653549738 |- |- |- |~4,450 |
5960
#### `HugeFloat`
6061
|Version |Scheme |Precision |Left Number |Right Number |Addition |Subtraction |Multiplication |Division |
6162
|:------------|:---------------:|:---------------:|:---------------:|:---------------:|:---------------:|:---------------:|:---------------:|:---------------:|
@@ -64,6 +65,8 @@ The tables below display the nanoseconds longer it took this library to calculat
6465
|1.0.13 |DEBUG |100 |12345.678 |54321.012 |- |- |- |~9,306,000 |
6566
|1.0.14 |RELEASE |6 |12345.678 |54321.012 |~790 |~1,080 |~3,300 |~39,500 |
6667
|1.0.14 |RELEASE |100 |12345.678 |54321.012 |- |- |- |~660,000 |
68+
|1.0.16 |RELEASE |6 |12345.678 |54321.012 |- |- |- |~33,400 |
69+
|1.0.16 |RELEASE |6 |12345.678 |54321.012 |- |- |- |~533,000 |
6770

6871
## Contributing
6972
Adding/improving functionality is always welcome, just make a PR.

Tests/huge-numbersTests/huge_numbersTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import HugeNumbers
1010

1111
final class huge_numbersTests : XCTestCase {
1212
func testExample() async throws {
13-
//try await test_benchmarks()
13+
try await test_benchmarks()
1414

1515
await HugeIntTests().validate()
1616
await HugeFloatTests().validate()
@@ -36,12 +36,12 @@ extension huge_numbersTests {
3636
//try await test_benchmark_integer_addition()
3737
//try await test_benchmark_integer_subtraction()
3838
//try await test_benchmark_integer_multiplication()
39-
try await test_benchmark_integer_division()
39+
//try await test_benchmark_integer_division()
4040

4141
//try await test_benchmark_float_addition()
4242
//try await test_benchmark_float_subtraction()
4343
//try await test_benchmark_float_multiplication()
44-
//try await test_benchmark_float_division()
44+
try await test_benchmark_float_division()
4545
}
4646
}
4747
@available(macOS 13.0, *)
@@ -119,7 +119,7 @@ extension huge_numbersTests {
119119
private func test_benchmark_float_division() async throws {
120120
let left_native:Float = 12345.678, right_native:Float = 54321.012
121121
let left:HugeFloat = HugeFloat("12345.678"), right:HugeFloat = HugeFloat("54321.012")
122-
let precision:HugeInt = HugeInt.float_precision
122+
let precision:HugeInt = HugeInt.default_precision
123123
try await benchmark_compare_is_faster(key1: "HugeFloat.divide", {
124124
let _:HugeFloat = left.divide_by(right, precision: precision)
125125
}, key2: "Float.divide", code2: {

0 commit comments

Comments
 (0)