Comparing the bytecode for these (skipping everything up through the keyword lookup, which is same for all):
Original: Option 1: Option 2:
45: astore_2 45: invokestatic #41 45: astore_2
46: lload_0 48: lstore_2 46: lload_0
47: aload_2 49: lload_0 47: aload_2
48: invokestatic #41 50: lload_2 48: checkcast #37
51: ifeq 62 51: lcmp 51: invokestatic #43
54: lload_0 52: ifge 60 54: lcmp
55: invokestatic #45 55: lload_0 55: ifge 66
58: goto 65 56: goto 61 58: lload_0
61: pop 59: pop 59: invokestatic #49
62: aload_2 60: lload_2 62: goto 69
63: aconst_null 61: lstore 4 65: pop
64: astore_2 63: lload 4 66: aload_2
65: astore_3 65: invokestatic #47 67: aconst_null
66: aload_3 68: astore_2
67: aconst_null 69: astore_3
68: astore_3 70: aload_3
71: aconst_null
72: astore_3
Option 1 does an lstore/lload (long) instead of an astore/lstore (object). Both options use lcmp which is likely the fastest path to compare longs. I've omitted some info here to make these fit, but Original line 48 will invoke Numbers.lt:(JLjava/lang/Object;)Z which is the Numbers.lt(long, Object) - lcmp is definitely going to be preferable to this. Also of importance is that in Option 1, both a and b are stored as longs and loaded as longs so if there is subsequent stuff to do on them, they can avoid boxing (this is also betrayed by the shorter length from fewer casts).
Your longValue one is like Option 1, but starts:
45: checkcast #37 // class java/lang/Long
48: invokevirtual #41 // Method java/lang/Long.longValue:()J
I guess I don't know whether that's faster than an invokestatic call to clojure/lang/RT.longCast:(Ljava/lang/Object;)J, hard to tell without testing in a real context. I'd certainly use the (long ...) one though unless I proved it mattered.