Skip to content

Commit

Permalink
Improve prims for floating-point arithmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Nov 6, 2024
1 parent a3ee712 commit 08801f0
Show file tree
Hide file tree
Showing 2 changed files with 241 additions and 221 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ public static boolean isEmptyObject(final Object object) {
return object instanceof EmptyObject;
}

public static boolean isExactDouble(final long value) {
return (long) (double) value == value;
}

public static boolean isFloatObject(final Object object) {
return object instanceof FloatObject;
}
Expand Down
Loading

1 comment on commit 08801f0

@TruffleSqueak-Bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Performance Report (08801f0)

Benchmarks ran on 23.0.1-graal.

Steady (after 100 iterations)

Benchmark Name Min Geomean Median Mean Max Total (ms) Total (min)
Bounce 517 532 521.04 518 521.01 104207 1.74
CD 469 491 474.85 471 474.79 94969 1.58
DeltaBlue 281 437 395.68 396 395.08 79135 1.32
Havlak 1111 1167 1140.96 1140 1140.91 228192 3.8
Json 364 382 367.63 365 367.58 73525 1.23
List 311 344 315.05 315 315.01 63010 1.05
Mandelbrot 129 156 130.76 130 130.72 26153 0.44
NBody 243 264 247.73 245 247.68 49546 0.83
Permute 155 170 156.25 155 156.23 31250 0.52
Queens 217 249 219.84 218 219.78 43967 0.73
Richards 1263 1329 1270.21 1266 1270.19 254043 4.23
Sieve 177 191 178.24 177 178.21 35647 0.59
Storage 139 187 144.38 140 144.03 28876 0.48
Towers 178 207 180.4 179 180.33 36080 0.6
5554 6106 5743 5715 5741.54 1148600 19.14

08801f0-2-steady.svg

Warmup (first 100 iterations)

08801f0-3-warmup.svg

Please sign in to comment.