Skip to content

Commit

Permalink
More data
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgoergens committed Jan 14, 2025
1 parent a2dc9b3 commit ced353b
Show file tree
Hide file tree
Showing 20 changed files with 1,244 additions and 768 deletions.
3 changes: 3 additions & 0 deletions plotting/ceno.data
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
9459 ceno 21.25
9505 ceno 21.56
9525 ceno 21.82
9631 ceno 22.12
9679 ceno 22.72
9691 ceno 22.4
9694 ceno 21.71
Expand All @@ -311,6 +312,7 @@
10278 ceno 23.42
10328 ceno 24.26
10371 ceno 23.48
10423 ceno 24.08
10439 ceno 23.21
10447 ceno 23.07
10460 ceno 23.9
Expand Down Expand Up @@ -360,3 +362,4 @@
11805 ceno 24.88
11901 ceno 24.94
11935 ceno 24.93
19563 ceno 31.05
6 changes: 3 additions & 3 deletions plotting/plot
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
set -euxo pipefail

plotting/get_data | grep sp1 > plotting/sp1.data
plotting/get_data | grep ceno > plotting/ceno.data
nice plotting/get_data | nice grep sp1 > plotting/sp1.data
nice plotting/get_data | nice grep ceno > plotting/ceno.data

(
cd plotting
gnuplot plot.gnuplot
nice gnuplot plot.gnuplot
)
2 changes: 1 addition & 1 deletion plotting/plot.gnuplot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# plot_sp1_ceno.gnu

# 1) Choose SVG output
set terminal svg size 800,600 font "Helvetica,10"
set terminal svg size 1600,1200 font "Helvetica,10"
set output 'sp1_ceno_scatter.svg'

# 2) Basic plot settings
Expand Down
5 changes: 4 additions & 1 deletion plotting/sp1.data
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
9459 sp1 31.81
9505 sp1 33.82
9525 sp1 32.44
9631 sp1 33.77
9679 sp1 32.79
9691 sp1 33.09
9694 sp1 32.11
Expand All @@ -296,7 +297,7 @@
9781 sp1 34.4
9806 sp1 33.97
9837 sp1 33.84
9846 sp1
9846 sp1 33.42
9896 sp1 32.66
9930 sp1 33.53
9953 sp1 32.9
Expand All @@ -311,6 +312,7 @@
10278 sp1 35.95
10328 sp1 35.54
10371 sp1 35.03
10423 sp1 35.42
10439 sp1 36.47
10447 sp1 35.16
10460 sp1 35.26
Expand Down Expand Up @@ -360,3 +362,4 @@
11805 sp1 37.05
11901 sp1 36.44
11935 sp1 37.57
19563 sp1
1,580 changes: 819 additions & 761 deletions plotting/sp1_ceno_scatter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions run_sorting
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
set -euxo pipefail

export MAX=12000
# export MAX="$((1 << 14))"
# export MAX=12000
export MAX="$((1 << 15))"

for N in $(shuf --input-range=1-${MAX}); do
for system in $(shuf --echo ceno sp1); do
Expand Down
40 changes: 40 additions & 0 deletions sorting-output/10423-2025-01-14T14:26:02,632314328+00:00/sp1/log
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,43 @@ stdout: WARNING: Using insecure random number generator.
2025-01-14T14:26:07.486569Z  INFO prove_core: Chip SyscallCore: 5 -> 18
2025-01-14T14:26:07.486570Z  INFO prove_core: Chip SyscallInstrs: 5 -> 18
2025-01-14T14:26:07.633550Z  INFO prove_core:generate main traces: close time.busy=147ms time.idle=1.85µs index=0
2025-01-14T14:26:37.683343Z  INFO prove_core: execution report (totals): total_cycles=3276526, total_syscall_cycles=20, touched_memory_addresses=41524
2025-01-14T14:26:37.683364Z  INFO prove_core: execution report (opcode counts):
2025-01-14T14:26:37.683374Z  INFO prove_core: 1015204 add
2025-01-14T14:26:37.683377Z  INFO prove_core: 569408 lw
2025-01-14T14:26:37.683379Z  INFO prove_core: 533285 sw
2025-01-14T14:26:37.683381Z  INFO prove_core: 274603 sll
2025-01-14T14:26:37.683382Z  INFO prove_core: 169102 bltu
2025-01-14T14:26:37.683384Z  INFO prove_core: 136705 xor
2025-01-14T14:26:37.683386Z  INFO prove_core: 130319 srl
2025-01-14T14:26:37.683387Z  INFO prove_core: 127844 or
2025-01-14T14:26:37.683389Z  INFO prove_core: 125899 sltu
2025-01-14T14:26:37.683391Z  INFO prove_core: 59777 bne
2025-01-14T14:26:37.683393Z  INFO prove_core: 42414 beq
2025-01-14T14:26:37.683394Z  INFO prove_core: 39826 bgeu
2025-01-14T14:26:37.683396Z  INFO prove_core: 22952 jal
2025-01-14T14:26:37.683398Z  INFO prove_core: 10905 sub
2025-01-14T14:26:37.683400Z  INFO prove_core: 6608 jalr
2025-01-14T14:26:37.683401Z  INFO prove_core: 5829 and
2025-01-14T14:26:37.683403Z  INFO prove_core: 3307 auipc
2025-01-14T14:26:37.683404Z  INFO prove_core: 1413 mul
2025-01-14T14:26:37.683406Z  INFO prove_core: 450 sb
2025-01-14T14:26:37.683407Z  INFO prove_core: 281 lbu
2025-01-14T14:26:37.683408Z  INFO prove_core: 202 mulhu
2025-01-14T14:26:37.683410Z  INFO prove_core: 165 blt
2025-01-14T14:26:37.683411Z  INFO prove_core: 20 ecall
2025-01-14T14:26:37.683412Z  INFO prove_core: 4 lb
2025-01-14T14:26:37.683414Z  INFO prove_core: 3 divu
2025-01-14T14:26:37.683415Z  INFO prove_core: 1 bge
2025-01-14T14:26:37.683419Z  INFO prove_core: execution report (syscall counts):
2025-01-14T14:26:37.683423Z  INFO prove_core: 8 commit
2025-01-14T14:26:37.683425Z  INFO prove_core: 8 commit_deferred_proofs
2025-01-14T14:26:37.683427Z  INFO prove_core: 1 halt
2025-01-14T14:26:37.683428Z  INFO prove_core: 1 write
2025-01-14T14:26:37.683430Z  INFO prove_core: 1 hint_len
2025-01-14T14:26:37.683431Z  INFO prove_core: 1 hint_read
2025-01-14T14:26:37.683438Z  INFO prove_core: summary: cycles=3276526, e2e=30.947302241s, khz=105.87
2025-01-14T14:26:37.692932Z  INFO prove_core: close time.busy=30.2s time.idle=802ms
Successfully generated proof!
2025-01-14T14:26:38.221272Z  INFO verify: close time.busy=515ms time.idle=1.74µs
Successfully verified proof!
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Command being timed: "cargo run --release -- --n=10423 --prove"
User time (seconds): 1298.73
System time (seconds): 50.86
Percent of CPU this job got: 3809%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:35.42
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 18804588
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 12360927
Voluntary context switches: 404765
Involuntary context switches: 82114
Swaps: 0
File system inputs: 0
File system outputs: 880
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Command being timed: "cargo run --package=ceno_zkvm --bin=e2e --profile=release -- --hints=/home/matthias/scroll/prog/zkVM-benchmarks/sorting-output/10423-2025-01-14T14:26:39,016702075+00:00/ceno/hints /home/matthias/scroll/prog/zkVM-benchmarks/ceno/examples/target/riscv32im-ceno-zkvm-elf/release/examples/sorting"
User time (seconds): 732.11
System time (seconds): 51.06
Percent of CPU this job got: 3251%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:24.08
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 7478428
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 4431192
Voluntary context switches: 1010246
Involuntary context switches: 160558
Swaps: 0
File system inputs: 0
File system outputs: 32
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
42 changes: 42 additions & 0 deletions sorting-output/11193-2025-01-14T14:29:43,583017833+00:00/sp1/log
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
2025-01-14T14:29:44.928750Z  WARN SP1_PROVER environment variable not set, defaulting to 'cpu'
2025-01-14T14:29:45.384428Z  INFO vk verification: true
n: 11193
2025-01-14T14:29:47.697606Z  INFO prove_core: clk = 0 pc = 0x200d04
stdout: WARNING: Using insecure random number generator.
2025-01-14T14:29:47.813005Z  INFO prove_core: clk = 0 pc = 0x200d04
stdout: WARNING: Using insecure random number generator.
2025-01-14T14:29:48.350710Z  INFO prove_core: deferred 1 records
2025-01-14T14:29:48.535928Z  INFO prove_core: Shard Lifted: Index=1, Cluster=54
2025-01-14T14:29:48.535952Z  INFO prove_core: Chip Cpu: 21 -> 21
2025-01-14T14:29:48.535954Z  INFO prove_core: Chip DivRem: 2 -> 10
2025-01-14T14:29:48.535956Z  INFO prove_core: Chip AddSub: 21 -> 21
2025-01-14T14:29:48.535959Z  INFO prove_core: Chip Bitwise: 19 -> 19
2025-01-14T14:29:48.535960Z  INFO prove_core: Chip Mul: 10 -> 17
2025-01-14T14:29:48.535961Z  INFO prove_core: Chip ShiftRight: 18 -> 18
2025-01-14T14:29:48.535963Z  INFO prove_core: Chip ShiftLeft: 18 -> 18
2025-01-14T14:29:48.535964Z  INFO prove_core: Chip Lt: 19 -> 19
2025-01-14T14:29:48.535965Z  INFO prove_core: Chip MemoryLocal: 13 -> 18
2025-01-14T14:29:48.535966Z  INFO prove_core: Chip MemoryInstrs: 20 -> 20
2025-01-14T14:29:48.535968Z  INFO prove_core: Chip Auipc: 11 -> 18
2025-01-14T14:29:48.535969Z  INFO prove_core: Chip Branch: 17 -> 18
2025-01-14T14:29:48.535970Z  INFO prove_core: Chip Jump: 14 -> 18
2025-01-14T14:29:48.535971Z  INFO prove_core: Chip Global: 16 -> 17
2025-01-14T14:29:48.535972Z  INFO prove_core: Chip SyscallCore: 2 -> 10
2025-01-14T14:29:48.535973Z  INFO prove_core: Chip SyscallInstrs: 2 -> 10
2025-01-14T14:29:48.536270Z  INFO prove_core: Shard Lifted: Index=2, Cluster=61
2025-01-14T14:29:48.536274Z  INFO prove_core: Chip Cpu: 21 -> 21
2025-01-14T14:29:48.536276Z  INFO prove_core: Chip AddSub: 21 -> 21
2025-01-14T14:29:48.536277Z  INFO prove_core: Chip Bitwise: 14 -> 17
2025-01-14T14:29:48.536278Z  INFO prove_core: Chip Mul: 10 -> 17
2025-01-14T14:29:48.536279Z  INFO prove_core: Chip ShiftRight: 12 -> 17
2025-01-14T14:29:48.536281Z  INFO prove_core: Chip ShiftLeft: 17 -> 17
2025-01-14T14:29:48.536282Z  INFO prove_core: Chip Lt: 19 -> 19
2025-01-14T14:29:48.536283Z  INFO prove_core: Chip MemoryLocal: 12 -> 18
2025-01-14T14:29:48.536284Z  INFO prove_core: Chip MemoryInstrs: 19 -> 19
2025-01-14T14:29:48.536285Z  INFO prove_core: Chip Auipc: 12 -> 18
2025-01-14T14:29:48.536287Z  INFO prove_core: Chip Branch: 18 -> 18
2025-01-14T14:29:48.536288Z  INFO prove_core: Chip Jump: 15 -> 18
2025-01-14T14:29:48.536289Z  INFO prove_core: Chip Global: 15 -> 17
2025-01-14T14:29:48.536290Z  INFO prove_core: Chip SyscallCore: 5 -> 18
2025-01-14T14:29:48.536291Z  INFO prove_core: Chip SyscallInstrs: 5 -> 18
2025-01-14T14:29:48.710256Z  INFO prove_core:generate main traces: close time.busy=174ms time.idle=2.03µs index=0
Empty file.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Command being timed: "cargo run --package=ceno_zkvm --bin=e2e --profile=release -- --hints=/home/matthias/scroll/prog/zkVM-benchmarks/sorting-output/19563-2025-01-14T14:28:26,486493098+00:00/ceno/hints /home/matthias/scroll/prog/zkVM-benchmarks/ceno/examples/target/riscv32im-ceno-zkvm-elf/release/examples/sorting"
User time (seconds): 1052.71
System time (seconds): 65.97
Percent of CPU this job got: 3602%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:31.05
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 12229020
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 7464515
Voluntary context switches: 1122359
Involuntary context switches: 176523
Swaps: 0
File system inputs: 0
File system outputs: 32
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
Loading

0 comments on commit ced353b

Please sign in to comment.