Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

investigate and improve apple silicon performance #719

Closed
Trivo25 opened this issue Feb 8, 2023 · 6 comments
Closed

investigate and improve apple silicon performance #719

Trivo25 opened this issue Feb 8, 2023 · 6 comments
Assignees

Comments

@Trivo25
Copy link
Member

Trivo25 commented Feb 8, 2023

during the last office hours, we have received complains about degraded (or rather no improvement at all compared to before the original fix #683) apple silicon performance in snarkyjs 0.8.0

another nice-to-have could be benchmarks that users can run, potentially baked in to the zk cli

@jasongitmail
Copy link
Contributor

@Trivo25 If you're able to contact these devs, can you ask them to provide the output from zk system please? To add to this issue

@maht0rz
Copy link
Contributor

maht0rz commented Feb 13, 2023

here's my zk system:

✗ zk system
Please include the following when submitting a Github issue:

  System:
    OS: macOS 13.0
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 17.8.0 - ~/.nvm/versions/node/v17.8.0/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v17.8.0/bin/npm
  npmPackages:
    snarkyjs: ^0.8.0 => 0.8.0 
  npmGlobalPackages:
    zkapp-cli: 0.5.4

We've tried proving worlde or some other zkApp with Jack at the last office hours and we found out the performance was still degraded.

@Trivo25
Copy link
Member Author

Trivo25 commented Feb 14, 2023

seems like bindings got overwritten

@mitschabaude
Copy link
Member

hm, I would like to understand this. in main, the changes are in the bindings -- search for get_efficient_num_workers in this file: https://raw.githubusercontent.com/o1-labs/snarkyjs/main/src/node_bindings/snarky_js_node.bc.cjs

@Trivo25
Copy link
Member Author

Trivo25 commented Feb 14, 2023

If i am not mistaken the bindings weren't up to date with the fix with the state from release 0.8.0 (which they should have) - but they are now https://raw.githubusercontent.com/o1-labs/snarkyjs/c5a36207a7d345d4b96038569d7db66101ec07cd/src/node_bindings/snarky_js_node.bc.cjs so it seems like a PR remove the fix and another one after that re-added the change - probably some out of sync work on the Mina side

@Trivo25 Trivo25 self-assigned this Feb 14, 2023
@Trivo25
Copy link
Member Author

Trivo25 commented Feb 15, 2023

Just confirmed my assumption. Tested by looking for the added code snippet in the bindings get_efficient_num_workers as well as running a handful of tests on my M2 from release tag 0.8.0 and main - version 0.8.0 shipped without the fix but the next update will have the updated bindings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants