Skip to content

Proposal: Add a benchmark. #235

@martinfrances107

Description

@martinfrances107

In my spare time I am porting this module over to rust ( rustlang ) so I can have a wasm binary that I run in the browser.

As I work I am judging my process by how many test I have ported over .. but now I need something else... I need to start profiling. ( it is still very much pre-alpha level code but it is showing signs of working.)

What I need is a benchmark .. that is

The simplest code that exercises the largest amount of code paths a produces a number so that I can measure improvement or degradations in performance.

Also what I need is a javascript equivalent for comparison.

So , I have converted this tutorial

https://www.d3-graph-gallery.com/graph/backgroundmap_canvas_basic.html

to run d3-geo with the orthographic projection.

I have a PR .. that I am about to post.

In terms of discussion ... perhaps future work will have the projection selected from a pull-down menu

I am open to suggestions .. If anyone has an idea for other benchmarks ... I am wiling to do the work.

Currently the RenderTime on my laptop for the benchmark is 64ms

If the rust code runs 10 times faster, as I hope, then we can have a detailed globe spinning well below the 16ms needed for jank free animation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions