doot on Nostr: Go vs Rust for my prototype remote PoW note server (running from an old macbook) Go ...
Go vs Rust for my prototype remote PoW note server (running from an old macbook)
Go avg hashrate: ~600,000
Rust avg hashrate: ~45,000
could be my shit code cause somehow rust is giving similar performance to nodeJS.
thank you for the golangpill
fiatjaf (npub180c…h6w6) it’s over for global energy markets note16cr…3mgx
Published at
2023-11-19 03:20:32Event JSON
{
"id": "1632c49b8cd27fbd80e8d51cc17225d862d7ee45afb76e0929d74fc410d48553",
"pubkey": "8f44c56131b362668b0e01be8c71b24786598bb68fb909cfd78fabfb058dd0f0",
"created_at": 1700364032,
"kind": 1,
"tags": [
[
"q",
"6e7bfda3f8a804e5ca6a86ce1e80655ec0abed47dc0250587a5e7c83e0a5ba38"
],
[
"imeta",
"url https://image.nostr.build/78fd589bf8e56dbf9f4d0e0db013e8648b413c9aba303fae71451edae47dd1d0.jpg",
"blurhash e17d%r~qt7%MM{xuofRj%Mofxu%Mt7RjfQoft7t7xuxu?b?bRjt7M{",
"dim 1170x285"
],
[
"p",
"8f44c56131b362668b0e01be8c71b24786598bb68fb909cfd78fabfb058dd0f0"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
],
[
"r",
"https://image.nostr.build/78fd589bf8e56dbf9f4d0e0db013e8648b413c9aba303fae71451edae47dd1d0.jpg"
]
],
"content": "Go vs Rust for my prototype remote PoW note server (running from an old macbook) \n\nGo avg hashrate: ~600,000\nRust avg hashrate: ~45,000\n\ncould be my shit code cause somehow rust is giving similar performance to nodeJS.\nthank you for the golangpill nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6 https://image.nostr.build/78fd589bf8e56dbf9f4d0e0db013e8648b413c9aba303fae71451edae47dd1d0.jpg nostr:note1dealmglc4qzwtjn2sm8paqr9tmq2hm28msp9qkr6te7g8c99hguqqtfp98",
"sig": "54f07759077dd0d3e1ed4b2106a810252e167ce47cb02b07e58f5dd48b74487d760989fbee50163bb7e788facf621d4fa7ca7776bd89153b1286da6382aed233"
}