Skip to content

Commit

Permalink
fix: typo in unit - billions, not trillions
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois committed Sep 1, 2023
1 parent c73e3ca commit 6bdc570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func BenchmarkFeatureToggleEvaluation(b *testing.B) {
opsPerDay := opsPerSec * 60 * 60 * 24

if b.N > 1000000 { // Only print if the number of iterations is large enough for a stable result
opsPerDayTrillions := opsPerDay / 1e9 // Convert to billions
fmt.Printf("Final Estimated Operations Per Day: %.3f billion (%e)\n", opsPerDayTrillions, opsPerDay)
opsPerDayBillions := opsPerDay / 1e9 // Convert to billions
fmt.Printf("Final Estimated Operations Per Day: %.3f billion (%e)\n", opsPerDayBillions, opsPerDay)
}
}

0 comments on commit 6bdc570

Please sign in to comment.