Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tz-lookup performance results using Racket 7.3

https://alex-hhh.github.io/2019/08/timezone-lookup.html

These are the test results when running the tests mentioned in the above blog post against Racket 7.3, I did not run the first test, as it takes way too long. These results indicate that Racket 7.3 is faster than Racket-on-Chez used for the measurements in that blog post, but the aim of the blog post was not to measure the performance difference between Racket versions. Since the results are interesting, I decided to move them here, rther than discard them.

You can run the tests yourself, see https://github.com/alex-hhh/time-zone-lookup-tests

Bounding Boxes (2)

function total calls total time (ms) min (ms) max (ms) mean (ms)
load-geojson 1 25243.88 25243.88 25243.88 25243.88
prepare-features 1 723.16 723.16 723.16 723.16
tz-lookup 996 28668.28 0 1068.58 28.78
feature-winding-number 424296 28543.22 0 1021.73 0.07
shape-winding-number 1174284 28293.18 0 1021.73 0.02
polygon-winding-number 1437228 27980.93 0 1021.73 0.02
polygon-winding-number-internal 1624 27730.99 0 1021.73 17.08
subtended-angle 52424084 14520.52 0 990.45 0.00028

Vectors (3)

function total calls total time (ms) min (ms) max (ms) mean (ms)
load-geojson 1 24306.82 24306.82 24306.82 24306.82
prepare-features 1 1093.5 1093.5 1093.5 1093.5
tz-lookup 996 26239.79 0 499.88 26.35
feature-winding-number 424296 26161.71 0 499.88 0.06
shape-winding-number 1174284 25927.43 0 499.88 0.02
polygon-winding-number 1437228 25596.56 0 499.88 0.02
polygon-winding-number-internal 1624 25284.19 0 499.88 15.57
subtended-angle 52424084 13506.6 0 390.53 0.00026

Avoid unnecessary allocations (4)

function total calls total time (ms) min (ms) max (ms) mean (ms)
load-geojson 1 24140.95 24140.95 24140.95 24140.95
prepare-features 1 1093.5 1093.5 1093.5 1093.5
tz-lookup 996 24378.4 0 468.88 24.48
feature-winding-number 424296 24284.87 0 460.75 0.06
shape-winding-number 1174284 24106.63 0 460.75 0.02
polygon-winding-number 1437228 23754.43 0 460.75 0.02
polygon-winding-number-internal 1624 23468.82 0 460.75 14.45
subtended-angle 52424084 11216.33 0 448.36 0.00021

Flvectors (5)

function total calls total time (ms) min (ms) max (ms) mean (ms)
load-geojson 1 24202.93 24202.93 24202.93 24202.93
prepare-features 1 1171.56 1171.56 1171.56 1171.56
tz-lookup 996 24746.7 0 328.05 24.85
feature-winding-number 424296 24574.82 0 328.05 0.06
shape-winding-number 1174284 24364.21 0 328.05 0.02
polygon-winding-number 1437228 24114.24 0 328.05 0.02
polygon-winding-number-internal 1624 23910.19 0 328.05 14.72
subtended-angle 52424084 11426.41 0 15.68 0.00022

Fl operations (6)

function total calls total time (ms) min (ms) max (ms) mean (ms)
load-geojson 1 24113.28 24113.28 24113.28 24113.28
prepare-features 1 1058.38 1058.38 1058.38 1058.38
tz-lookup 996 20278.22 0 296.84 20.36
feature-winding-number 424296 20137.66 0 281.22 0.05
shape-winding-number 1174284 19825.05 0 281.22 0.02
polygon-winding-number 1437228 19496.81 0 281.22 0.01
polygon-winding-number-internal 1624 19309.44 0 281.22 11.89
subtended-angle 52424084 6116.42 0 15.7 0.00012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.